mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Fixed the move line of keymaps for mac
The `<A-j>` and `<A-h>` couldn't working in mac. When I tried to press both of keymap, `<A-j>`, I got this symbol `∆` `<A-k>` I got this symbol `˚`
This commit is contained in:
parent
a50f92f755
commit
e62c93c3f5
1 changed files with 8 additions and 0 deletions
|
|
@ -31,6 +31,14 @@ map("i", "<A-k>", "<esc><cmd>m .-2<cr>==gi", { desc = "Move up" })
|
|||
map("v", "<A-j>", ":m '>+1<cr>gv=gv", { desc = "Move down" })
|
||||
map("v", "<A-k>", ":m '<-2<cr>gv=gv", { desc = "Move up" })
|
||||
|
||||
-- Move lines compatible with Mac
|
||||
map("n", "∆", "<cmd>m .+1<cr>==", { desc = "Move down" })
|
||||
map("n", "˚", "<cmd>m .-2<cr>==", { desc = "Move up" })
|
||||
map("i", "∆", "<esc><cmd>m .+1<cr>==gi", { desc = "Move down" })
|
||||
map("i", "˚", "<esc><cmd>m .-2<cr>==gi", { desc = "Move up" })
|
||||
map("v", "∆", ":m '>+1<cr>gv=gv", { desc = "Move down" })
|
||||
map("v", "˚", ":m '<-2<cr>gv=gv", { desc = "Move up" })
|
||||
|
||||
-- buffers
|
||||
map("n", "<S-h>", "<cmd>bprevious<cr>", { desc = "Prev buffer" })
|
||||
map("n", "<S-l>", "<cmd>bnext<cr>", { desc = "Next buffer" })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue