fix(nvim): re-enable luasnip

This commit is contained in:
Michael Thomas 2024-07-18 21:54:27 -04:00
parent aa240a91d1
commit eb0b879bea
2 changed files with 6 additions and 1 deletions

View File

@ -28,12 +28,16 @@
})
'';
};
snippet = {
expand = "function(args) require('luasnip').lsp_expand(args.body) end";
};
sources = {
__raw = ''
cmp.config.sources({
{name = 'nvim_lsp'},
{name = 'copilot'},
{name = 'path'},
{name = 'luasnip'},
{name = 'cmdline'},
}, {
{name = 'buffer'},
@ -69,6 +73,7 @@
cmp-path.enable = true;
};
extraConfigLua = ''
luasnip = require("luasnip")
kind_icons = {
Text = "󰊄",
Method = "",

View File

@ -38,7 +38,7 @@
./none-ls/none-ls.nix
# ./snippets/luasnip.nix
./snippets/luasnip.nix
./statusline/lualine.nix