From 385728a64123b85fe28694103b60e489b387b3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 8 May 2022 21:29:37 +0300 Subject: Change complete options The preview window was getting on my nerves. --- dotfiles/.config/nvim/init.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index 68f376e..e8f2dbc 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -34,6 +34,7 @@ call plug#end() syntax on set foldmethod=syntax set omnifunc=syntaxcomplete#Complete + set completeopt=menuone,noinsert set guicursor=n-v-sm:block,i-ci-c-ve:ver25,r-cr-o:block set cursorline set redrawtime=1000 @@ -174,7 +175,7 @@ call plug#end() autocmd VimLeave *.tex !texclear % " Disables automatic commenting on newline: - autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + autocmd FileType * setlocal formatoptions-=o " C-T for new tab nnoremap :tabe @@ -243,7 +244,7 @@ call plug#end() " File format preferences " MFing neovim overrding my omnifunc with whatever ccomplete is autocmd FileType c,ch,header,cpp setlocal omnifunc=v:lua.vim.lsp.omnifunc - " No Rust, spaces is not superior to tabs, 100 lines is too much + " No, Rust, spaces is not superior to tabs, 100 lines is too much autocmd FileType rust setlocal noet ci pi sts=0 ts=4 sw=4 tw=80 autocmd FileType meson setlocal noet ci pi sts=0 ts=4 sw=4 tw=80 autocmd FileType tex setlocal spell spelllang=en_us,es,ru tw=80 | -- cgit v1.2.3