1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

nvim/lua/user/plugins/editor/autocomplete.lua: updated settings

This commit is contained in:
Henrik Hautakoski 2025-01-26 18:42:29 +01:00
parent f29bbc2184
commit 9d371f0de7

View file

@ -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