From c74b0fa43dff48975f0f71ecf44846e074f9e0d5 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Sun, 7 Apr 2024 19:31:37 +0200 Subject: nixvim: add luasnip source --- hm/nixvim/config.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hm') diff --git a/hm/nixvim/config.nix b/hm/nixvim/config.nix index 24e5a33..7d3ddc0 100644 --- a/hm/nixvim/config.nix +++ b/hm/nixvim/config.nix @@ -57,6 +57,7 @@ pkgs: { }; cmp = { enable = true; + autoEnableSources = true; settings = { snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end"; mappings = { @@ -69,6 +70,7 @@ pkgs: { "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; }; sources = [ + {name = "luasnip";} {name = "nvim_lsp";} {name = "path";} { -- cgit 1.4.1