feat(nvim): add better default mappings (yank + indent)

This commit is contained in:
Moritz Böhme 2024-10-26 17:05:31 +02:00
parent 89fe11a95f
commit 49afd873da
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -26,6 +26,9 @@ in
{ {
keymaps = [ keymaps = [
{ key = "<esc>"; action = "<cmd>noh<cr><esc>"; options.desc = "Escape and clear hlsearch"; mode = [ "i" "n" ]; } { key = "<esc>"; action = "<cmd>noh<cr><esc>"; options.desc = "Escape and clear hlsearch"; mode = [ "i" "n" ]; }
{ key = "<"; action = "<gv"; options.desc = "Shift left"; mode = [ "v" ]; }
{ key = ">"; action = ">gv"; options.desc = "Shift right"; mode = [ "v" ]; }
{ key = "y"; action = "ygv<esc>"; options.desc = "Yank"; mode = [ "v" ]; }
]; ];
} }
{ plugins.oil.enable = true; } { plugins.oil.enable = true; }