Replaced treewalker with iswap which works better (like keeping

whitespace for cases like switch statements)
This commit is contained in:
2025-05-07 20:05:04 +03:00
parent 1f99b3c587
commit ffaf12680f
3 changed files with 18 additions and 13 deletions

View File

@@ -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,
},
}