diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index c2cbf7e..ae4c688 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -1,3 +1,8 @@ +nmap gvd (go-def-vertical) +nmap gsd (go-def-split) +nmap gvD (go-def-type-vertical) +nmap gsD (go-def-type-split) + nmap gb :up:GoBuild nmap gr :up:GoRun nmap gc :GoCallers diff --git a/vimrc b/vimrc index 357a5e9..9485e64 100644 --- a/vimrc +++ b/vimrc @@ -94,6 +94,9 @@ augroup vimrc autocmd InsertLeavePre * set nocul " use tabs in .gitconfig autocmd BufEnter .gitconfig setlocal shiftwidth=2 tabstop=2 noexpandtab + " Quickfix window is always full-width. + " https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503 + autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif augroup end " But, don't remember the current directory for a given file: @@ -139,13 +142,14 @@ nmap l :lclose " deoplete configuration packadd! deoplete.nvim +" Disable completion messages: +set shortmess+=c let g:deoplete#enable_at_startup = 1 call deoplete#custom#option('num_processes', 6) -call deoplete#custom#option('max_list', 50) -call deoplete#custom#option('auto_complete_delay', 10) -call deoplete#custom#option('auto_refresh_delay', 10) -" https://github.com/Shougo/deoplete.nvim/issues/965#issuecomment-482925193 -" Seems to be causing autocomplete issues so removing for now. +call deoplete#custom#option('max_list', 250) +call deoplete#custom#option('auto_complete_delay', 0) +call deoplete#custom#option('auto_refresh_delay', 250) +call deoplete#custom#option('refresh_always', v:false) call deoplete#custom#option('omni_patterns', { \ 'go': '[^. *\t]\.\w*', \})