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

23 lines
364 B
Nix
Raw Permalink Normal View History

2023-02-01 22:00:29 +01:00
{
config,
pkgs,
2023-02-01 22:00:29 +01:00
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.binds) pushDownDefault;
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 = pushDownDefault {
2024-02-25 17:39:05 +01:00
"<leader>m" = "+Minimap";
};
2023-02-01 22:00:29 +01:00
};
}