mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 08:36:46 +00:00
23 lines
364 B
Nix
23 lines
364 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.binds) 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";
|
|
};
|
|
};
|
|
}
|