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