feat(nvim): add snippets for luasnip

Add friendly snippets and load them with luasnip.
This commit is contained in:
Moritz Böhme 2023-04-10 21:55:40 +02:00
parent 7ae552d698
commit badc4ffa49
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 2 additions and 0 deletions

View file

@ -70,6 +70,7 @@ in
cmp_luasnip
copilot-cmp
direnv-vim
friendly-snippets
lsp_lines-nvim
lspkind-nvim
lspsaga-nvim-original

View file

@ -14,6 +14,7 @@ vim.api.nvim_create_autocmd("InsertEnter", {
callback = function()
local cmp = require("cmp")
local luasnip = require("luasnip")
require("luasnip.loaders.from_vscode").lazy_load()
require("copilot_cmp").setup()
cmp.setup({