1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 17:29:48 +01:00
neovim-flake/modules/plugins/minimap/minimap-vim/config.nix

22 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";
};
};
}