aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/cmp.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin/cmp.vim')
-rw-r--r--.vim/after/plugin/cmp.vim18
1 files changed, 11 insertions, 7 deletions
diff --git a/.vim/after/plugin/cmp.vim b/.vim/after/plugin/cmp.vim
index e95dd71..17f5086 100644
--- a/.vim/after/plugin/cmp.vim
+++ b/.vim/after/plugin/cmp.vim
@@ -9,7 +9,10 @@ packadd nvim-cmp
packadd cmp-buffer
packadd cmp-path
packadd cmp-cmdline
-packadd cmp-nvim-ultisnips
+packadd cmp-omni
+
+" cmp-nvim-ultisnips is kind of buggy. Disable it before investigation.
+" packadd cmp-nvim-ultisnips
lua <<EOF
@@ -17,15 +20,16 @@ local cmp = require 'cmp'
cmp.setup({
preselect = cmp.PreselectMode.None,
- snippet = {
- expand = function(args)
- vim.fn["UltiSnips#Anon"](args.body)
- end,
- },
+ -- snippet = {
+ -- expand = function(args)
+ -- vim.fn["UltiSnips#Anon"](args.body)
+ -- end,
+ -- },
sources = cmp.config.sources({
- { name = 'ultisnips' },
+ -- { name = 'ultisnips' },
{ name = 'nvim_lsp' },
+ { name = 'omni' },
}, {
{ name = 'buffer' },
}),