Replaced treewalker with iswap which works better (like keeping
whitespace for cases like switch statements)
This commit is contained in:
17
.config/nvim/lua/plugins/iswap.lua
Normal file
17
.config/nvim/lua/plugins/iswap.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user