Update nvimrc
This commit is contained in:
parent
189ba6f92d
commit
4d8f632266
9
nvimrc
9
nvimrc
|
@ -289,7 +289,7 @@ EOF
|
|||
|
||||
" Function to eat trailing character when applying iabbrevs.
|
||||
" https://stackoverflow.com/questions/11858927/preventing-trailing-whitespace-when-using-vim-abbreviations
|
||||
func Eatchar(pat)
|
||||
func! Eatchar(pat)
|
||||
let c = nr2char(getchar(0))
|
||||
return (c =~ a:pat) ? '' : c
|
||||
endfunc
|
||||
|
@ -619,6 +619,7 @@ lua <<EOF
|
|||
cmp.setup({
|
||||
completion = {
|
||||
completeopt = 'menu,menuone,noinsert',
|
||||
keyword_length = 3,
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
|
@ -649,7 +650,11 @@ lua <<EOF
|
|||
comparators = {
|
||||
function(...) return cmp_buffer:compare_locality(...) end,
|
||||
}
|
||||
}
|
||||
},
|
||||
experimental = {
|
||||
native_menu = true,
|
||||
ghost_text = true,
|
||||
},
|
||||
})
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Reference in New Issue