add rust snippets and update autocomplete button
This commit is contained in:
parent
96d70243cc
commit
dce7f6ebe5
3
init.lua
3
init.lua
|
@ -618,6 +618,7 @@ require('lazy').setup({
|
||||||
{
|
{
|
||||||
'rafamadriz/friendly-snippets',
|
'rafamadriz/friendly-snippets',
|
||||||
config = function()
|
config = function()
|
||||||
|
require('luasnip').filetype_extend('rust', { 'rust' })
|
||||||
require('luasnip.loaders.from_vscode').lazy_load()
|
require('luasnip.loaders.from_vscode').lazy_load()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
@ -665,7 +666,7 @@ require('lazy').setup({
|
||||||
-- This will auto-import if your LSP supports it.
|
-- This will auto-import if your LSP supports it.
|
||||||
-- This will expand snippets if the LSP sent a snippet.
|
-- This will expand snippets if the LSP sent a snippet.
|
||||||
-- original: ['<C-y>'] = cmp.mapping.confirm { select = true },
|
-- original: ['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||||
['<Return>'] = cmp.mapping.confirm { select = true },
|
['<CR>'] = cmp.mapping.confirm { select = true },
|
||||||
|
|
||||||
-- Manually trigger a completion from nvim-cmp.
|
-- Manually trigger a completion from nvim-cmp.
|
||||||
-- Generally you don't need this, because nvim-cmp will display
|
-- Generally you don't need this, because nvim-cmp will display
|
||||||
|
|
Loading…
Reference in New Issue