nix-community.nixvim/plugins/utils/intellitab.nix

23 lines
453 B
Nix
Raw Normal View History

2021-12-11 16:56:27 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.plugins.comment-nvim;
defs = import ../plugin-defs.nix { inherit pkgs; };
2021-12-11 16:56:27 +00:00
in
{
options = {
plugins.intellitab = {
2021-12-11 16:56:27 +00:00
enable = mkEnableOption "intellitab.nvim";
};
};
config = mkIf cfg.enable {
extraPlugins = [ defs.intellitab-nvim ];
2021-12-11 16:56:27 +00:00
maps.insert."<Tab>" = "<CMD>lua require([[intellitab]]).indent()<CR>";
plugins.treesitter = {
indent = true;
2021-12-11 16:56:27 +00:00
};
};
}