From ffaf12680fd5e97fe09ec4f5bb2acf441b1b8d0f Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 7 May 2025 20:05:04 +0300 Subject: Replaced treewalker with iswap which works better (like keeping whitespace for cases like switch statements) --- .config/nvim/lua/plugins/iswap.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/nvim/lua/plugins/iswap.lua (limited to '.config/nvim/lua/plugins/iswap.lua') 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', 'IMoveNodeWithLeft', silent = true }, + { 'L', 'IMoveNodeWithRight', 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, + }, +} -- cgit v1.3.1