diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-08 21:29:37 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-08 21:29:37 +0300 |
commit | 385728a64123b85fe28694103b60e489b387b3a5 (patch) | |
tree | 13df166045b27be497d0fc4ae65432cbd918f6ae /dotfiles | |
parent | cc241067a232abf432883120b7ed5bef800cf658 (diff) | |
download | vimrice-385728a64123b85fe28694103b60e489b387b3a5.tar.gz vimrice-385728a64123b85fe28694103b60e489b387b3a5.zip |
Change complete options
The preview window was getting on my nerves.
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/.config/nvim/init.vim | 5 |
1 files 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 <C-t> :tabe<Space> @@ -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 | |