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

23 lines
390 B
Nix
Raw Normal View History

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