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.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/.vim/after/plugin/cmp.vim b/.vim/after/plugin/cmp.vim
index 226f8c5..e95dd71 100644
--- a/.vim/after/plugin/cmp.vim
+++ b/.vim/after/plugin/cmp.vim
@@ -9,6 +9,7 @@ packadd nvim-cmp
packadd cmp-buffer
packadd cmp-path
packadd cmp-cmdline
+packadd cmp-nvim-ultisnips
lua <<EOF
@@ -16,8 +17,14 @@ local cmp = require 'cmp'
cmp.setup({
preselect = cmp.PreselectMode.None,
+ snippet = {
+ expand = function(args)
+ vim.fn["UltiSnips#Anon"](args.body)
+ end,
+ },
sources = cmp.config.sources({
+ { name = 'ultisnips' },
{ name = 'nvim_lsp' },
}, {
{ name = 'buffer' },