feat: small improvements (#25)

- Renamed and moved settings in some plugins due to upstream changes
- Added comments to neovim settings
- Added cmdheight = 0 and mouse = "a" settings to config
This commit is contained in:
Roel de Cort 2024-08-26 23:37:02 +02:00 committed by GitHub
parent 01025e42f3
commit 502d31e03c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 275 additions and 159 deletions

View file

@ -2,54 +2,77 @@
globals.mapleader = " ";
keymaps = [
{
mode = ["n" "x"];
key = "j";
action = "v:count == 0 ? 'gj' : 'j'";
options = {expr = true; silent = true;};
options = {
expr = true;
silent = true;
};
}
{
mode = ["n" "x"];
key = "<Down>";
action = "v:count == 0 ? 'gj' : 'j'";
options = {expr = true; silent = true;};
options = {
expr = true;
silent = true;
};
}
{
mode = ["n" "x"];
key = "k";
action = "v:count == 0 ? 'gk' : 'k'";
options = {expr = true; silent = true;};
options = {
expr = true;
silent = true;
};
}
{
mode = ["n" "x"];
key = "<Up>";
action = "v:count == 0 ? 'gk' : 'k'";
options = {expr = true; silent = true;};
options = {
expr = true;
silent = true;
};
}
{
mode = "n";
key = "<C-h>";
action = "<C-w>h";
options = {desc = "Go to Left Window"; remap = true;};
options = {
desc = "Go to Left Window";
remap = true;
};
}
{
mode = "n";
key = "<C-j>";
action = "<C-w>j";
options = {desc = "Go to Lower Window"; remap = true;};
options = {
desc = "Go to Lower Window";
remap = true;
};
}
{
mode = "n";
key = "<C-k>";
action = "<C-w>k";
options = {desc = "Go to Upper Window"; remap = true;};
options = {
desc = "Go to Upper Window";
remap = true;
};
}
{
mode = "n";
key = "<C-l>";
action = "<C-w>l";
options = {desc = "Go to Right Window"; remap = true;};
options = {
desc = "Go to Right Window";
remap = true;
};
}
{
mode = "n";
@ -148,37 +171,55 @@
mode = "n";
key = "n";
action = "'Nn'[v:searchforward].'zv'";
options = {expr = true; desc = "Next Search Result";};
options = {
expr = true;
desc = "Next Search Result";
};
}
{
mode = "x";
key = "n";
action = "'Nn'[v:searchforward]";
options = {expr = true; desc = "Next Search Result";};
options = {
expr = true;
desc = "Next Search Result";
};
}
{
mode = "o";
key = "n";
action = "'Nn'[v:searchforward]";
options = {expr = true; desc = "Next Search Result";};
options = {
expr = true;
desc = "Next Search Result";
};
}
{
mode = "n";
key = "N";
action = "'nN'[v:searchforward].'zv'";
options = {expr = true; desc = "Prev Search Result";};
options = {
expr = true;
desc = "Prev Search Result";
};
}
{
mode = "x";
key = "N";
action = "'nN'[v:searchforward]";
options = {expr = true; desc = "Prev Search Result";};
options = {
expr = true;
desc = "Prev Search Result";
};
}
{
mode = "o";
key = "N";
action = "'nN'[v:searchforward]";
options = {expr = true; desc = "Prev Search Result";};
options = {
expr = true;
desc = "Prev Search Result";
};
}
{
mode = "n";
@ -274,37 +315,55 @@
mode = "n";
key = "<leader>ww";
action = "<C-W>p";
options = {desc = "Other Window"; remap = true;};
options = {
desc = "Other Window";
remap = true;
};
}
{
mode = "n";
key = "<leader>wd";
action = "<C-W>c";
options = {desc = "Delete Window"; remap = true;};
options = {
desc = "Delete Window";
remap = true;
};
}
{
mode = "n";
key = "<leader>w-";
action = "<C-W>s";
options = {desc = "Split Window Below"; remap = true;};
options = {
desc = "Split Window Below";
remap = true;
};
}
{
mode = "n";
key = "<leader>w|";
action = "<C-W>v";
options = {desc = "Split Window Right"; remap = true;};
options = {
desc = "Split Window Right";
remap = true;
};
}
{
mode = "n";
key = "<leader>-";
action = "<C-W>s";
options = {desc = "Split Window Below"; remap = true;};
options = {
desc = "Split Window Below";
remap = true;
};
}
{
mode = "n";
key = "<leader>|";
action = "<C-W>v";
options = {desc = "Split Window Right"; remap = true;};
options = {
desc = "Split Window Right";
remap = true;
};
}
{
mode = "n";
@ -344,4 +403,3 @@
}
];
}