mirror of
https://github.com/pnx/dotfiles
synced 2026-07-02 14:33:40 +02:00
nvim/lua/user/plugins/editor/autocomplete.lua: updated settings
This commit is contained in:
parent
f29bbc2184
commit
9d371f0de7
1 changed files with 2 additions and 1 deletions
|
|
@ -50,11 +50,12 @@ return {
|
||||||
if success and node and vim.tbl_contains({ 'comment', 'line_comment', 'block_comment' }, node:type()) then
|
if success and node and vim.tbl_contains({ 'comment', 'line_comment', 'block_comment' }, node:type()) then
|
||||||
return { 'buffer' }
|
return { 'buffer' }
|
||||||
else
|
else
|
||||||
return { 'lsp', 'path', 'luasnip', 'buffer' }
|
return { 'lsp', 'path', 'snippets', 'buffer' }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
snippets = {
|
snippets = {
|
||||||
|
preset = 'luasnip',
|
||||||
expand = function(snippet) require('luasnip').lsp_expand(snippet) end,
|
expand = function(snippet) require('luasnip').lsp_expand(snippet) end,
|
||||||
active = function(filter)
|
active = function(filter)
|
||||||
if filter and filter.direction then
|
if filter and filter.direction then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue