about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plugins/luasnip/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/soispha/conf/nvim/plugins/luasnip/default.nix')
-rw-r--r--hm/soispha/conf/nvim/plugins/luasnip/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/hm/soispha/conf/nvim/plugins/luasnip/default.nix b/hm/soispha/conf/nvim/plugins/luasnip/default.nix
index 50a0b94c..130fafee 100644
--- a/hm/soispha/conf/nvim/plugins/luasnip/default.nix
+++ b/hm/soispha/conf/nvim/plugins/luasnip/default.nix
@@ -1,12 +1,20 @@
-{lib, ...}: {
+{
+  lib,
+  pkgs,
+  ...
+}: {
   programs.nixvim = {
     plugins.luasnip = {
       enable = true;
     };
     extraConfigLuaPost = ''
-      ${lib.strings.fileContents ./lua/luasnip.lua}
-      require("luasnip.loaders.from_lua").load({paths = "${./lua/snippets}"})
-      require("luasnip.loaders.from_lua").lazy_load({paths = "${./lua/snippets}"})
+      ${lib.strings.fileContents ./lua/luasnip.lua};
+      require("luasnip.loaders.from_lua").load({paths = "${./lua/snippets}"});
+      require("luasnip.loaders.from_lua").lazy_load({paths = "${./lua/snippets}"});
     '';
+    extraPlugins = [
+      # needed for the todo-comments snippets
+      pkgs.vimPlugins.comment-nvim
+    ];
   };
 }