Nvim: use iswap
This commit is contained in:
5
.config/nvim/after/plugin/iswap.rc.lua
Normal file
5
.config/nvim/after/plugin/iswap.rc.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
require('iswap').setup{}
|
||||
|
||||
local opts = { noremap=true, silent=true }
|
||||
vim.api.nvim_set_keymap('n', 'ta', '<cmd>ISwapWith<cr>', opts)
|
||||
vim.api.nvim_set_keymap('n', 'tn', '<cmd>ISwap<cr>', opts)
|
||||
@@ -37,17 +37,17 @@ ts.setup {
|
||||
-- colors = {}, -- table of hex strings
|
||||
-- termcolors = {} -- table of colour name strings
|
||||
},
|
||||
textobjects = {
|
||||
swap = {
|
||||
enable = true,
|
||||
swap_next = {
|
||||
["tan"] = "@parameter.inner",
|
||||
},
|
||||
swap_previous = {
|
||||
["tap"] = "@parameter.inner",
|
||||
},
|
||||
},
|
||||
},
|
||||
--textobjects = {
|
||||
-- swap = {
|
||||
-- enable = true,
|
||||
-- swap_next = {
|
||||
-- ["tan"] = "@parameter.inner",
|
||||
-- },
|
||||
-- swap_previous = {
|
||||
-- ["tap"] = "@parameter.inner",
|
||||
-- },
|
||||
-- },
|
||||
--},
|
||||
matchup = {
|
||||
enable = true,
|
||||
-- disable = { "c", "ruby" },
|
||||
|
||||
Reference in New Issue
Block a user