nvf/modules/plugins/minimap/minimap-vim/config.nix

23 lines
364 B
Nix
Raw Permalink Normal View History

2023-02-01 21:00:29 +00:00
{
config,
pkgs,
2023-02-01 21:00:29 +00:00
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.binds) pushDownDefault;
2023-02-01 21:00:29 +00:00
cfg = config.vim.minimap.minimap-vim;
in {
config = mkIf cfg.enable {
vim.startPlugins = [
pkgs.code-minimap
"minimap-vim"
];
2024-02-25 16:39:05 +00:00
vim.binds.whichKey.register = pushDownDefault {
2024-02-25 16:39:05 +00:00
"<leader>m" = "+Minimap";
};
2023-02-01 21:00:29 +00:00
};
}