diff --git a/nvim/lua/user/plugins/editor/autocomplete.lua b/nvim/lua/user/plugins/editor/autocomplete.lua index 071c453..e08b578 100644 --- a/nvim/lua/user/plugins/editor/autocomplete.lua +++ b/nvim/lua/user/plugins/editor/autocomplete.lua @@ -50,11 +50,12 @@ return { if success and node and vim.tbl_contains({ 'comment', 'line_comment', 'block_comment' }, node:type()) then return { 'buffer' } else - return { 'lsp', 'path', 'luasnip', 'buffer' } + return { 'lsp', 'path', 'snippets', 'buffer' } end end }, snippets = { + preset = 'luasnip', expand = function(snippet) require('luasnip').lsp_expand(snippet) end, active = function(filter) if filter and filter.direction then