From fe83822b5696e9ead9565293e29f64164bac10a7 Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 15 Mar 2021 12:36:31 +0100 Subject: [PATCH] vim: use popup for completion suggestions --- vim/vimrc | 5 +++++ 1 file changed, 5 insertions(+) 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