mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 15:39:47 +01:00
aerial: init
This commit is contained in:
parent
ee4c072ba3
commit
92e38fbfae
5 changed files with 68 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./outline
|
||||||
./binds
|
./binds
|
||||||
./ccc
|
./ccc
|
||||||
./gestures
|
./gestures
|
||||||
|
|
14
modules/plugins/utility/outline/aerial-nvim/aerial-nvim.nix
Normal file
14
modules/plugins/utility/outline/aerial-nvim/aerial-nvim.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{lib, ...}: let
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
inherit (lib.nvim.binds) mkMappingOption;
|
||||||
|
in {
|
||||||
|
options.vim.utility.outline.aerial-nvim = {
|
||||||
|
enable = mkEnableOption "Aerial.nvim";
|
||||||
|
setupOpts = mkPluginSetupOption "aerial.nvim" {};
|
||||||
|
|
||||||
|
mappings = {
|
||||||
|
toggle = mkMappingOption "Toggle aerial window" "gO";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
42
modules/plugins/utility/outline/aerial-nvim/config.nix
Normal file
42
modules/plugins/utility/outline/aerial-nvim/config.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
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;})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/utility/outline/aerial-nvim/default.nix
Normal file
6
modules/plugins/utility/outline/aerial-nvim/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./aerial-nvim.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
5
modules/plugins/utility/outline/default.nix
Normal file
5
modules/plugins/utility/outline/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./aerial-nvim
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue