intellitab: package option

This commit is contained in:
Alexander Nortung 2023-01-17 23:16:03 +01:00
parent 9e4a08c2e7
commit 299795d2d2

View file

@ -8,11 +8,17 @@ in
options = {
plugins.intellitab = {
enable = mkEnableOption "intellitab.nvim";
package = mkOption {
type = types.package;
default = defs.intellitab-nvim;
description = "Plugin to use for intellitab.nvim";
};
};
};
config = mkIf cfg.enable {
extraPlugins = [ defs.intellitab-nvim ];
extraPlugins = [ cfg.package ];
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
plugins.treesitter = {