Adds snippets to nvim

This commit is contained in:
Michael Housh
2023-10-01 19:21:06 -04:00
parent e8772df72e
commit 19229a2b90
6 changed files with 25 additions and 13 deletions

View File

@@ -112,10 +112,10 @@ return {
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
-- elseif luasnip.expandable() then
-- luasnip.expand()
-- elseif luasnip.expand_or_jumpable() then
-- luasnip.expand_or_jump()
elseif luasnip.expandable() then
luasnip.expand()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
elseif has_words_before() then
cmp.complete()
else