2023-02-01 21:00:29 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-02-25 16:39:05 +00:00
|
|
|
inherit (lib) mkIf defaultAttributes;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-02-01 21:00:29 +00:00
|
|
|
cfg = config.vim.minimap.minimap-vim;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
2023-02-03 19:15:19 +00:00
|
|
|
vim.startPlugins = [
|
2023-02-05 21:03:55 +00:00
|
|
|
pkgs.code-minimap
|
2023-02-03 19:15:19 +00:00
|
|
|
"minimap-vim"
|
|
|
|
];
|
2024-02-25 16:39:05 +00:00
|
|
|
|
|
|
|
vim.binds.whichKey.register = defaultAttributes {
|
|
|
|
"<leader>m" = "+Minimap";
|
|
|
|
};
|
2023-02-01 21:00:29 +00:00
|
|
|
};
|
|
|
|
}
|