re-added friendly-snippets without messing keybinds.

This commit is contained in:
Gabe Venberg 2022-02-07 13:47:57 -06:00
parent ae1fcff4be
commit ecab268930
2 changed files with 12 additions and 1 deletions

View file

@ -38,7 +38,7 @@ cmp.setup {
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
select = false,
},
['<Tab>'] = function(fallback)
if cmp.visible() then

View file

@ -34,6 +34,17 @@ return require('packer').startup(function(use)
}
}
use {'L3MON4D3/LuaSnip',
requires={
'rafamadriz/friendly-snippets'
},
config=function()
require("luasnip.loaders.from_snipmate").load()
require("luasnip.loaders.from_vscode").load()
end
}
use {'nvim-telescope/telescope.nvim',
requires = {
{'nvim-lua/plenary.nvim'},