From c7b8eebba1e3830e412687ea4c4cddc097779440 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 10 May 2024 00:27:03 +0300 Subject: [PATCH] modules/luasnip: add settings --- modules/plugins/snippet/luasnip.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/plugins/snippet/luasnip.nix b/modules/plugins/snippet/luasnip.nix index 2f333fd..6ce6389 100644 --- a/modules/plugins/snippet/luasnip.nix +++ b/modules/plugins/snippet/luasnip.nix @@ -8,11 +8,17 @@ in enable = mkEnableOption "luasnip"; package = mkPackageOption pkgs.vimPlugins "luasnip" { }; + + settings = mkOption { + type = types.attrs; + default = { }; + }; }; config = lib.mkIf cfg.enable { plugin.luasnip = { inherit (cfg) package; + setupSettings = cfg.settings; }; }; }