diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index 94a89dbd..f60c03c5 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -35,7 +35,6 @@ "plugins.extras.editor.outline", "plugins.extras.editor.package-info", "plugins.extras.editor.search-replace", - "plugins.extras.editor.smart-splits", "plugins.extras.editor.suda", "plugins.extras.editor.telescope.all-recent", "plugins.extras.editor.telescope.import", @@ -86,6 +85,7 @@ "plugins.extras.util.dot-extended", "plugins.extras.util.icon-picker", "plugins.extras.util.kitty-scrollback", + "plugins.extras.util.smart-splits", "plugins.extras.util.vscode", "plugins.extras.util.wakatime" ], diff --git a/.config/nvim/lua/plugins/extras/editor/smart-splits.lua b/.config/nvim/lua/plugins/extras/editor/smart-splits.lua deleted file mode 100644 index cc9b4dfe..00000000 --- a/.config/nvim/lua/plugins/extras/editor/smart-splits.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - "mrjones2014/smart-splits.nvim", - build = "./kitty/install-kittens.bash", - -- stylua: ignore - keys = { - { "", function() require("smart-splits").resize_left() end, desc = "Resize left", mode = "n" }, - { "", function() require("smart-splits").resize_down() end, desc = "Resize down", mode = "n" }, - { "", function() require("smart-splits").resize_up() end, desc = "Resize up", mode = "n" }, - { "", function() require("smart-splits").resize_right() end, desc = "Resize right", mode = "n" }, - { "", function() require("smart-splits").move_cursor_left() end, desc = "Move cursor left", mode = "n" }, - { "", function() require("smart-splits").move_cursor_down() end, desc = "Move cursor down", mode = "n" }, - { "", function() require("smart-splits").move_cursor_up() end, desc = "Move cursor up", mode = "n" }, - { "", function() require("smart-splits").move_cursor_right() end, desc = "Move cursor right", mode = "n" }, - { "", function() require("smart-splits").swap_buf_left() end, desc = "Swap buffer left", mode = "n" }, - { "", function() require("smart-splits").swap_buf_down() end, desc = "Swap buffer down", mode = "n" }, - { "", function() require("smart-splits").swap_buf_up() end, desc = "Swap buffer up", mode = "n" }, - { "", function() require("smart-splits").swap_buf_right() end, desc = "Swap buffer right", mode = "n" }, - }, -} diff --git a/.config/nvim/lua/plugins/extras/util/smart-splits.lua b/.config/nvim/lua/plugins/extras/util/smart-splits.lua new file mode 100644 index 00000000..feebab43 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/util/smart-splits.lua @@ -0,0 +1,19 @@ +return { + "mrjones2014/smart-splits.nvim", + build = "./kitty/install-kittens.bash", + -- stylua: ignore + keys = { + { "", function() require("smart-splits").resize_left() end, desc = "Resize left" }, + { "", function() require("smart-splits").resize_down() end, desc = "Resize down" }, + { "", function() require("smart-splits").resize_up() end, desc = "Resize up" }, + { "", function() require("smart-splits").resize_right() end, desc = "Resize right" }, + { "", function() require("smart-splits").move_cursor_left() end, desc = "Move cursor left" }, + { "", function() require("smart-splits").move_cursor_down() end, desc = "Move cursor down" }, + { "", function() require("smart-splits").move_cursor_up() end, desc = "Move cursor up" }, + { "", function() require("smart-splits").move_cursor_right() end, desc = "Move cursor right" }, + { "", function() require("smart-splits").swap_buf_left() end, desc = "Swap buffer left" }, + { "", function() require("smart-splits").swap_buf_down() end, desc = "Swap buffer down" }, + { "", function() require("smart-splits").swap_buf_up() end, desc = "Swap buffer up" }, + { "", function() require("smart-splits").swap_buf_right() end, desc = "Swap buffer right" }, + }, +}