nix-config/home/vim/plugin/settings/completion.vim

19 lines
349 B
VimL
Raw Normal View History

2022-03-04 16:54:40 +01:00
" Show completion menu in all cases, and don't select anything
set completeopt=menu,menuone,noselect
lua << EOF
local cmp = require("cmp")
cmp.setup({
2022-03-06 11:15:38 +01:00
view = {
entries = "native",
},
2022-03-04 16:54:40 +01:00
sources = {
{ name = "buffer" },
{ name = "nvim_lsp" },
2022-03-04 16:54:40 +01:00
{ name = "nvim_lua" },
{ name = "path" },
},
})
EOF