Update vimrc

This commit is contained in:
Rob Watson 2021-03-23 07:46:31 +01:00
parent c247ca55b3
commit c16e96435c
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,9 @@
nmap <silent> <leader>gb :up<bar>:GoBuild<cr>
nmap <silent> <leader>gr :up<bar>:GoRun<cr>
nmap <silent> <leader>gt :up<bar>:GoTest<cr>
nmap <silent> <leader>gf :up<bar>:GoTestFunc<cr>
nmap <silent> <leader>gt :up<bar>:GoTest!<cr>
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> <leader>gk :GoDocBrowser<cr>

4
vimrc
View File

@ -100,7 +100,8 @@ augroup end
set viewoptions-=curdir
" Key mappings:
nmap <silent> ,/ :nohlsearch<CR>
nmap <silent> <leader>/ :nohlsearch<CR>
nmap <silent> <leader><space> :nohlsearch<CR>
nnoremap j gj
nnoremap k gk
map <up> <nop>
@ -273,6 +274,7 @@ let g:lsp_settings = {
\ 'staticcheck': v:true,
\ 'hoverKind': 'SynopsisDocumentation',
\ 'linksInHover': v:false,
\ 'experimentalWorkspaceModule': v:false,
\ }}}
let g:lsp_diagnostics_float_cursor = 1
let g:lsp_diagnostics_float_delay = 200