mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: improve nvim
This commit is contained in:
64
modules/home-manager/programs/nixvim/presets/aerial.nix
Normal file
64
modules/home-manager/programs/nixvim/presets/aerial.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.presets.aerial;
|
||||
in
|
||||
{
|
||||
options.presets.aerial = {
|
||||
enable = lib.mkEnableOption "aerial";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
keymaps = [
|
||||
{
|
||||
key = "<C-Up>";
|
||||
action = # vim
|
||||
":AerialPrev<CR>";
|
||||
}
|
||||
{
|
||||
key = "<C-Down>";
|
||||
action = # vim
|
||||
":AerialNext<CR>";
|
||||
}
|
||||
{
|
||||
key = "fs";
|
||||
mode = "n";
|
||||
action = # vim
|
||||
":Telescope aerial<CR>";
|
||||
}
|
||||
];
|
||||
plugins = {
|
||||
aerial = {
|
||||
enable = true;
|
||||
settings = {
|
||||
autojump = true;
|
||||
highlight_on_jump = false;
|
||||
filter_kind = false;
|
||||
open_automatic = true;
|
||||
show_guides = true;
|
||||
backends = [
|
||||
"lsp"
|
||||
"treesitter"
|
||||
"markdown"
|
||||
"asciidoc"
|
||||
"man"
|
||||
];
|
||||
layout = {
|
||||
placement = "edge";
|
||||
direction = "right";
|
||||
};
|
||||
};
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "fs";
|
||||
group = "Symbols";
|
||||
icon = "";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user