diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-07 19:31:37 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-07 19:31:37 +0200 |
commit | c74b0fa43dff48975f0f71ecf44846e074f9e0d5 (patch) | |
tree | 25e0e0871653027f53f4ae9738473c3ab0043aa4 | |
parent | hm: consume firefox module (diff) | |
download | nix-config-c74b0fa43dff48975f0f71ecf44846e074f9e0d5.tar.gz nix-config-c74b0fa43dff48975f0f71ecf44846e074f9e0d5.zip |
nixvim: add luasnip source
-rw-r--r-- | hm/nixvim/config.nix | 2 |
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";} { |