mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 04:09:48 +01:00
21 lines
328 B
Nix
21 lines
328 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf pushDownDefault;
|
|
|
|
cfg = config.vim.minimap.minimap-vim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = [
|
|
pkgs.code-minimap
|
|
"minimap-vim"
|
|
];
|
|
|
|
vim.binds.whichKey.register = pushDownDefault {
|
|
"<leader>m" = "+Minimap";
|
|
};
|
|
};
|
|
}
|