From 9d371f0de70c9c2c0d22da6870cdef7c549b3e78 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 26 Jan 2025 18:42:29 +0100 Subject: [PATCH] nvim/lua/user/plugins/editor/autocomplete.lua: updated settings --- nvim/lua/user/plugins/editor/autocomplete.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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