neovim-flake/modules/minimap/minimap-vim/config.nix

22 lines
332 B
Nix
Raw Normal View History

2023-02-01 22:00:29 +01:00
{
pkgs,
config,
lib,
...
}: let
2024-02-25 17:39:05 +01:00
inherit (lib) mkIf defaultAttributes;
2023-02-01 22:00:29 +01:00
cfg = config.vim.minimap.minimap-vim;
in {
config = mkIf cfg.enable {
vim.startPlugins = [
pkgs.code-minimap
"minimap-vim"
];
2024-02-25 17:39:05 +01:00
vim.binds.whichKey.register = defaultAttributes {
"<leader>m" = "+Minimap";
};
2023-02-01 22:00:29 +01:00
};
}