1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-09 20:16:07 +01:00
nixvim/plugins/utils/intellitab.nix

27 lines
536 B
Nix

{
config,
pkgs,
lib,
...
}:
with lib; let
cfg = config.plugins.intellitab;
helpers = import ../helpers.nix {inherit lib;};
in {
options = {
plugins.intellitab = {
enable = mkEnableOption "intellitab.nvim";
package = helpers.mkPackageOption "intellitab.nvim" pkgs.vimPlugins.intellitab-nvim;
};
};
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
plugins.treesitter = {
indent = true;
};
};
}