mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
28 lines
577 B
Nix
28 lines
577 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.plugins.intellitab;
|
|
helpers = import ../helpers.nix {inherit lib;};
|
|
defs = import ../plugin-defs.nix {inherit pkgs;};
|
|
in {
|
|
options = {
|
|
plugins.intellitab = {
|
|
enable = mkEnableOption "intellitab.nvim";
|
|
|
|
package = helpers.mkPackageOption "intellitab.nvim" defs.intellitab-nvim;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = [cfg.package];
|
|
|
|
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
|
|
plugins.treesitter = {
|
|
indent = true;
|
|
};
|
|
};
|
|
}
|