mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 03:45:22 +02:00
intellitab: package option
This commit is contained in:
parent
9e4a08c2e7
commit
299795d2d2
1 changed files with 7 additions and 1 deletions
|
@ -8,11 +8,17 @@ in
|
||||||
options = {
|
options = {
|
||||||
plugins.intellitab = {
|
plugins.intellitab = {
|
||||||
enable = mkEnableOption "intellitab.nvim";
|
enable = mkEnableOption "intellitab.nvim";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = defs.intellitab-nvim;
|
||||||
|
description = "Plugin to use for intellitab.nvim";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
extraPlugins = [ defs.intellitab-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
|
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
|
||||||
plugins.treesitter = {
|
plugins.treesitter = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue