vimrc: update settings

This commit is contained in:
Rob Watson 2021-03-26 09:34:54 +01:00
parent 39375f53d7
commit 6829ce94bb
2 changed files with 8 additions and 4 deletions

View File

@ -5,6 +5,7 @@ nmap <silent> <leader>gT :up<bar>:GoTest<cr>
nmap <silent> <leader>gf :up<bar>:GoTestFunc!<cr>
nmap <silent> <leader>gF :up<bar>:GoTestFunc<cr>
nmap <silent> K <plug>(lsp-hover)
nmap <silent> <leader>gk :GoDocBrowser<cr>
nmap <silent> <leader>gv :vsplit<bar>:GoAlternate!<cr>
@ -15,6 +16,8 @@ nmap <silent> <leader>gat <esc>:GoAddTags<cr>
nmap <silent> <leader>grt <esc>:GoRemoveTags<cr>
nmap <silent> <leader>gec <esc>:up<bar>:GoErrCheck<cr>
nnoremap <silent> <leader>_ caw_ <esc>b
nnoremap <silent> dr :GoDebugBreakpoint<cr>
nnoremap <silent> d! :GoDebugStart<cr>
nnoremap <silent> dc :GoDebugContinue<cr>

9
vimrc
View File

@ -114,6 +114,7 @@ imap <right> <nop>
nmap ]q :cn<cr>
nmap [q :cp<cr>
nnoremap <silent> <leader>/ :nohlsearch<cr>
nnoremap <silent> <leader><space> :nohlsearch<cr>
" Select just-pasted text:
nnoremap <silent> <leader>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