From 6829ce94bba1aab9181a50b8b5dae3a45ccc0019 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 26 Mar 2021 09:34:54 +0100 Subject: [PATCH] vimrc: update settings --- vim/after/ftplugin/go.vim | 3 +++ vimrc | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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