[cmp] Disable snippets

This commit is contained in:
2023-12-23 00:10:19 +01:00
parent 5b4277f44e
commit c71e582d91
+3 -3
View File
@@ -96,8 +96,8 @@ local function setup()
function (fallback) function (fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then -- elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump() -- luasnip.expand_or_jump()
elseif has_words_before() then elseif has_words_before() then
cmp.complete() cmp.complete()
else else
@@ -119,7 +119,7 @@ local function setup()
}, },
sources = { sources = {
{ name = "nvim_lsp", }, { name = "nvim_lsp", },
{ name = "luasnip", }, -- { name = "luasnip", },
{ name = "nvim_lua", }, { name = "nvim_lua", },
{ name = "orgmode", }, { name = "orgmode", },
{ name = "path", }, { name = "path", },