add rust snippets and update autocomplete button

pull/1444/head
Eric Olerud 8 months ago
parent 96d70243cc
commit dce7f6ebe5

@ -618,6 +618,7 @@ require('lazy').setup({
{
'rafamadriz/friendly-snippets',
config = function()
require('luasnip').filetype_extend('rust', { 'rust' })
require('luasnip.loaders.from_vscode').lazy_load()
end,
},
@ -665,7 +666,7 @@ require('lazy').setup({
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
-- 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.
-- Generally you don't need this, because nvim-cmp will display

Loading…
Cancel
Save