mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat(editor): improve nvf navigation defaults
This commit is contained in:
parent
efe5beac3d
commit
e27ee91adb
2 changed files with 53 additions and 0 deletions
|
|
@ -78,4 +78,46 @@
|
|||
action = "<Cmd>Oil --float<CR>";
|
||||
desc = "Open Current Directory";
|
||||
}
|
||||
{
|
||||
key = "n";
|
||||
mode = "n";
|
||||
action = "nzzzv";
|
||||
desc = "Next search result (centered)";
|
||||
}
|
||||
{
|
||||
key = "N";
|
||||
mode = "n";
|
||||
action = "Nzzzv";
|
||||
desc = "Previous search result (centered)";
|
||||
}
|
||||
{
|
||||
key = "<C-d>";
|
||||
mode = "n";
|
||||
action = "<C-d>zz";
|
||||
desc = "Half page down (centered)";
|
||||
}
|
||||
{
|
||||
key = "<C-u>";
|
||||
mode = "n";
|
||||
action = "<C-u>zz";
|
||||
desc = "Half page up (centered)";
|
||||
}
|
||||
{
|
||||
key = "<";
|
||||
mode = "v";
|
||||
action = "<gv";
|
||||
desc = "Indent left and reselect";
|
||||
}
|
||||
{
|
||||
key = ">";
|
||||
mode = "v";
|
||||
action = ">gv";
|
||||
desc = "Indent right and reselect";
|
||||
}
|
||||
{
|
||||
key = "J";
|
||||
mode = "n";
|
||||
action = "mzJ`z";
|
||||
desc = "Join lines and keep cursor position";
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -9,4 +9,15 @@
|
|||
termguicolors = true;
|
||||
splitbelow = true;
|
||||
splitright = true;
|
||||
|
||||
# NVF unofficial
|
||||
scrolloff = 10;
|
||||
sidescrolloff = 8;
|
||||
softtabstop = 2;
|
||||
smartindent = true;
|
||||
ignorecase = true;
|
||||
smartcase = true;
|
||||
foldmethod = "expr";
|
||||
foldexpr = "v:lua.vim.treesitter.foldexpr()";
|
||||
foldlevel = 99;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue