diff options
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/iswap.lua | 17 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/treewalker.lua | 12 |
2 files changed, 17 insertions, 12 deletions
diff --git a/.config/nvim/lua/plugins/iswap.lua b/.config/nvim/lua/plugins/iswap.lua new file mode 100644 index 0000000..2de3b7a --- /dev/null +++ b/.config/nvim/lua/plugins/iswap.lua @@ -0,0 +1,17 @@ +return { + 'mizlan/iswap.nvim', + event = 'VeryLazy', + keys = { + { 'H', '<cmd>IMoveNodeWithLeft<cr>', silent = true }, + { 'L', '<cmd>IMoveNodeWithRight<cr>', silent = true }, + }, + opts = { + -- Post-operation flashing highlight style, + -- either 'simultaneous' or 'sequential', or false to disable + -- default 'sequential' + flash_style = false, + + -- Move cursor to the other element in ISwap*With commands + move_cursor = true, + }, +} diff --git a/.config/nvim/lua/plugins/treewalker.lua b/.config/nvim/lua/plugins/treewalker.lua deleted file mode 100644 index af4992b..0000000 --- a/.config/nvim/lua/plugins/treewalker.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - 'aaronik/treewalker.nvim', - keys = { - { 'H', '<cmd>Treewalker SwapLeft<cr>', silent = true }, - { 'L', '<cmd>Treewalker SwapRight<cr>', silent = true }, - }, - opts = { - highlight = true, - highlight_duration = 250, - highlight_group = 'CursorLine', - }, -} |
