refactor(plugins/astrocore): move some settings out of plugin

This commit is contained in:
Nicolas Goudry 2024-06-07 22:51:48 +02:00
parent 2b6a512de0
commit 1677fceed9
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
15 changed files with 720 additions and 778 deletions

44
config/keymaps/splits.nix Normal file
View file

@ -0,0 +1,44 @@
# Split navigation
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore_mappings.lua#L107-L114
[
{
key = "<C-H>";
action = "<C-w>h";
options.desc = "Move to left split";
}
{
key = "<C-J>";
action = "<C-w>j";
options.desc = "Move to below split";
}
{
key = "<C-K>";
action = "<C-w>k";
options.desc = "Move to above split";
}
{
key = "<C-L>";
action = "<C-w>l";
options.desc = "Move to right split";
}
{
key = "<C-Up>";
action = "<Cmd>resize -2<CR>";
options.desc = "Resize split up";
}
{
key = "<C-Down>";
action = "<Cmd>resize +2<CR>";
options.desc = "Resize split down";
}
{
key = "<C-Left>";
action = "<Cmd>vertical resize -2<CR>";
options.desc = "Resize split left";
}
{
key = "<C-Right>";
action = "<Cmd>vertical resize +2<CR>";
options.desc = "Resize split right";
}
]