diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index bf7dd53..d41d465 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -5,6 +5,7 @@ nmap gT :up:GoTest nmap gf :up:GoTestFunc! nmap gF :up:GoTestFunc +nmap K (lsp-hover) nmap gk :GoDocBrowser nmap gv :vsplit:GoAlternate! @@ -15,6 +16,8 @@ nmap gat :GoAddTags nmap grt :GoRemoveTags nmap gec :up:GoErrCheck +nnoremap _ caw_ b + nnoremap dr :GoDebugBreakpoint nnoremap d! :GoDebugStart nnoremap dc :GoDebugContinue diff --git a/vimrc b/vimrc index cb92a75..070dda8 100644 --- a/vimrc +++ b/vimrc @@ -114,6 +114,7 @@ imap nmap ]q :cn nmap [q :cp +nnoremap / :nohlsearch nnoremap :nohlsearch " Select just-pasted text: nnoremap 0 `[v`] @@ -280,10 +281,10 @@ let g:lsp_settings = { \ 'experimentalWorkspaceModule': v:false, \ }}} let g:lsp_diagnostics_float_cursor = 1 -let g:lsp_diagnostics_float_delay = 200 -let g:lsp_diagnostics_highlight_delay = 200 -let g:lsp_diagnostics_signs_delay = 200 -let g:lsp_diagnostics_code_action_signs_delay = 200 +let g:lsp_diagnostics_float_delay = 175 +let g:lsp_diagnostics_highlight_delay = 175 +let g:lsp_diagnostics_signs_delay = 175 +let g:lsp_diagnostics_code_action_signs_delay = 175 let g:lsp_document_highlight_delay = 500 let g:lsp_async_completion = 1