home: vim: configure 'nvim-cmp'
This commit is contained in:
parent
25967e21f1
commit
273618ff94
14
home/vim/plugin/settings/completion.vim
Normal file
14
home/vim/plugin/settings/completion.vim
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
" Show completion menu in all cases, and don't select anything
|
||||||
|
set completeopt=menu,menuone,noselect
|
||||||
|
|
||||||
|
lua << EOF
|
||||||
|
local cmp = require("cmp")
|
||||||
|
|
||||||
|
cmp.setup({
|
||||||
|
sources = {
|
||||||
|
{ name = "buffer" },
|
||||||
|
{ name = "nvim_lua" },
|
||||||
|
{ name = "path" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
EOF
|
Loading…
Reference in a new issue