From ba15207d1e1319ac7efa64b3851caa66063f4fb4 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Mon, 3 Apr 2023 22:48:40 +0530 Subject: [PATCH] switch to luasnip for snippets --- home/nixvim.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home/nixvim.nix b/home/nixvim.nix index fb274a9..d30980c 100644 --- a/home/nixvim.nix +++ b/home/nixvim.nix @@ -71,22 +71,23 @@ trouble.enable = true; nvim-cmp = { enable = true; - snippet.expand = "ultisnips"; + snippet.expand = "luasnip"; sources = [ { name = "buffer"; } { name = "nvim_lsp"; } { name = "nvim_lsp_document_symbol"; } { name = "nvim_lsp_signature_help"; } { name = "treesitter"; } - { name = "ultisnips"; } + { name = "luasnip"; } ]; }; cmp-buffer.enable = true; cmp-nvim-lsp.enable = true; cmp-nvim-lsp-document-symbol.enable = true; cmp-nvim-lsp-signature-help.enable = true; - cmp-nvim-ultisnips.enable = true; cmp-treesitter.enable = true; + cmp_luasnip.enable = true; + luasnip.enable = true; bufferline = { enable = true; diagnostics = "nvim_lsp";