mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Add left right keymaps to always open folds
This commit is contained in:
parent
4cb12312cf
commit
69bf1fc4cf
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ map({ "n", "x" }, "<Down>", "v:count == 0 ? 'gj' : 'j'", { desc = "Down", expr =
|
|||
map({ "n", "x" }, "k", "v:count == 0 ? 'gk' : 'k'", { desc = "Up", expr = true, silent = true })
|
||||
map({ "n", "x" }, "<Up>", "v:count == 0 ? 'gk' : 'k'", { desc = "Up", expr = true, silent = true })
|
||||
|
||||
-- Open folds on left/right
|
||||
map("n", "h", "foldclosed('.') > 0 ? 'zoh' : 'h'", { expr = true, silent = true })
|
||||
map("n", "l", "foldclosed('.') > 0 ? 'zol' : 'l'", { expr = true, silent = true })
|
||||
|
||||
-- Move to window using the <ctrl> hjkl keys
|
||||
map("n", "<C-h>", "<C-w>h", { desc = "Go to Left Window", remap = true })
|
||||
map("n", "<C-j>", "<C-w>j", { desc = "Go to Lower Window", remap = true })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue