add(nvim): leap!

This commit is contained in:
Léana 江 2023-05-16 12:10:00 +02:00 committed by Léana 江
parent abc384f9ce
commit 1f14e3c980
4 changed files with 8 additions and 3 deletions

View file

@ -41,5 +41,5 @@ require "iswap".setup {
hl_grey_priority = '1000',
}
vim.keymap.set('n', "s<Left>", ":ISwapNodeWithLeft<CR>", { desc = "Swap argument with left" })
vim.keymap.set('n', "s<Right>", ":ISwapNodeWithRight<CR>", { desc = "Swap argument with right" })
vim.keymap.set('n', "<leader>s<Left>", ":ISwapNodeWithLeft<CR>", { desc = "Swap argument with left" })
vim.keymap.set('n', "<leader>s<Right>", ":ISwapNodeWithRight<CR>", { desc = "Swap argument with right" })

View file

@ -0,0 +1 @@
require('leap').add_default_mappings()