diff --git a/vim/vimrc b/vim/vimrc index 5e11bdf..5953cca 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -32,6 +32,11 @@ set hlsearch "highlight search results (using *) set expandtab shiftwidth=4 tabstop=4 "always use spaces +" Completion menu config (see :h completopt) +set completeopt=menu,menuone,noselect,noinsert +" Show completion suggestions in popups instead of preview window +set completeopt+=popup + autocmd FileType yaml,yml setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType vue setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType go setlocal noexpandtab