mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 00:48:58 +02:00
35 lines
583 B
Nix
35 lines
583 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.plugins.intellitab;
|
|
in
|
|
{
|
|
options = {
|
|
plugins.intellitab = {
|
|
enable = mkEnableOption "intellitab.nvim";
|
|
|
|
package = helpers.mkPluginPackageOption "intellitab.nvim" pkgs.vimPlugins.intellitab-nvim;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = [ cfg.package ];
|
|
|
|
keymaps = [
|
|
{
|
|
mode = "i";
|
|
key = "<Tab>";
|
|
action.__raw = "require('intellitab').indent";
|
|
}
|
|
];
|
|
plugins.treesitter = {
|
|
settings.indent.enable = true;
|
|
};
|
|
};
|
|
}
|