nvf/modules/minimap/minimap-vim/config.nix
2024-02-25 11:54:13 -05:00

22 lines
332 B
Nix

{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf defaultAttributes;
cfg = config.vim.minimap.minimap-vim;
in {
config = mkIf cfg.enable {
vim.startPlugins = [
pkgs.code-minimap
"minimap-vim"
];
vim.binds.whichKey.register = defaultAttributes {
"<leader>m" = "+Minimap";
};
};
}