From 15b3766aef5a197cd2ebfa17bd15216be5125cf3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 4 Mar 2022 16:54:40 +0100 Subject: [PATCH] home: vim: configure 'nvim-cmp' --- home/vim/plugin/settings/completion.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 home/vim/plugin/settings/completion.vim diff --git a/home/vim/plugin/settings/completion.vim b/home/vim/plugin/settings/completion.vim new file mode 100644 index 0000000..2069902 --- /dev/null +++ b/home/vim/plugin/settings/completion.vim @@ -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