summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-07 19:31:37 +0200
committerSilas Schöffel <sils@sils.li>2024-04-07 19:31:37 +0200
commitc74b0fa43dff48975f0f71ecf44846e074f9e0d5 (patch)
tree25e0e0871653027f53f4ae9738473c3ab0043aa4 /hm
parenthm: consume firefox module (diff)
downloadnix-config-c74b0fa43dff48975f0f71ecf44846e074f9e0d5.tar.gz
nix-config-c74b0fa43dff48975f0f71ecf44846e074f9e0d5.zip
nixvim: add luasnip source
Diffstat (limited to 'hm')
-rw-r--r--hm/nixvim/config.nix2
1 files changed, 2 insertions, 0 deletions
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: {
           "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
         };
         sources = [
+          {name = "luasnip";}
           {name = "nvim_lsp";}
           {name = "path";}
           {