Replaced treewalker with iswap which works better (like keeping
whitespace for cases like switch statements)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
|
||||
"helpview.nvim": { "branch": "main", "commit": "8df486915a29483c7955067a7c17bffdf3b1e5f5" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||
"iswap.nvim": { "branch": "master", "commit": "e02cc91f2a8feb5c5a595767d208c54b6e3258ec" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
||||
"leap.nvim": { "branch": "main", "commit": "2b68ddc0802bd295e64c9e2e75f18f755e50dbcc" },
|
||||
@@ -48,7 +49,6 @@
|
||||
"tiny-inline-diagnostic.nvim": { "branch": "main", "commit": "cd401038de4cbae37651cfe02510294ccf5cdc98" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
|
||||
"treewalker.nvim": { "branch": "main", "commit": "34bf0a6044e0b5e3d93b7012ae7bdf457de91ba1" },
|
||||
"undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "fbc16dee336d8cc0d3d2382ea4a53f4a29725abf" },
|
||||
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
|
||||
|
||||
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,
|
||||
},
|
||||
}
|
||||
@@ -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',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user