mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-10 01:59:49 +01:00
42 lines
880 B
Nix
42 lines
880 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.binds) mkKeymap;
|
|
|
|
cfg = config.vim.utility.outline.aerial-nvim;
|
|
inherit (options.vim.utility.outline.aerial-nvim) mappings;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
lazy.plugins.aerial-nvim = {
|
|
package = "aerial-nvim";
|
|
|
|
setupModule = "aerial";
|
|
inherit (cfg) setupOpts;
|
|
|
|
cmd = [
|
|
"AerialClose"
|
|
"AerialCloseAll"
|
|
"AerialGo"
|
|
"AerialInfo"
|
|
"AerialNavClose"
|
|
"AerialNavOpen"
|
|
"AerialNavToggle"
|
|
"AerialNext"
|
|
"AerialOpen"
|
|
"AerialOpenAll"
|
|
"AerialPrev"
|
|
"AerialToggle"
|
|
];
|
|
|
|
keys = [
|
|
(mkKeymap "n" cfg.mappings.toggle ":AerialToggle<CR>" {desc = mappings.toggle.description;})
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|