From 326ce37b02e8a82544acecbd06a91aa943b0781a Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Mon, 15 Apr 2024 16:58:32 -0400 Subject: [PATCH] Fixes some lsp / cmp errors in nvim --- nvim/m-housh/lua/user/plugin/cmp.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nvim/m-housh/lua/user/plugin/cmp.lua b/nvim/m-housh/lua/user/plugin/cmp.lua index dd60013..acce32b 100755 --- a/nvim/m-housh/lua/user/plugin/cmp.lua +++ b/nvim/m-housh/lua/user/plugin/cmp.lua @@ -6,7 +6,8 @@ return { "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", "hrsh7th/cmp-cmdline", - --"hrsh7th/cmp-vsnip", + "hrsh7th/cmp-vsnip", + "hrsh7th/vim-vsnip", 'saadparwaiz1/cmp_luasnip', "f3fora/cmp-spell", "hrsh7th/cmp-calc", @@ -95,7 +96,8 @@ return { experimental = {native_menu = false, ghost_text = false}, snippet = { expand = function(args) - luasnip.lsp_expand(args.body) + vim.fn["vsnip#anonymous"](args.body) + --luasnip.lsp_expand(args.body) --require('luasnip').lsp_expand(args.body) end }, @@ -136,7 +138,7 @@ return { sources = { {name = "nvim_lsp"}, {name = "buffer", keyword_length = 5}, - --{name = 'luasnip', option = { show_autosnippets = true } }, + {name = 'luasnip', option = { show_autosnippets = true } }, {name = "calc"}, {name = "emoji"}, {name = "spell"},