Files
cnix/home/modules/devtools/nixvim/plugins/barbar.nix
2024-10-13 18:09:15 +02:00

24 lines
481 B
Nix

{
lib,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.userModules.devtools.nixvim.plugins.barbar;
in {
options = {
userModules.devtools.nixvim.plugins.barbar.enable = mkEnableOption "Enables Barbar plugin for nixvim";
};
config = mkIf cfg.enable {
programs.nixvim.plugins.barbar = {
enable = true;
keymaps = {
next.key = "<TAB>";
previous.key = "<S-TAB>";
close.key = "<C-w>";
};
};
};
}