From badc4ffa499c01e9db76b0217958733ea260e370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 10 Apr 2023 21:55:40 +0200 Subject: [PATCH] feat(nvim): add snippets for luasnip Add friendly snippets and load them with luasnip. --- modules/programs/nvim/default.nix | 1 + modules/programs/nvim/init.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/programs/nvim/default.nix b/modules/programs/nvim/default.nix index c14501d..4d566e9 100644 --- a/modules/programs/nvim/default.nix +++ b/modules/programs/nvim/default.nix @@ -70,6 +70,7 @@ in cmp_luasnip copilot-cmp direnv-vim + friendly-snippets lsp_lines-nvim lspkind-nvim lspsaga-nvim-original diff --git a/modules/programs/nvim/init.lua b/modules/programs/nvim/init.lua index 7bf12d5..cb87e87 100644 --- a/modules/programs/nvim/init.lua +++ b/modules/programs/nvim/init.lua @@ -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({