From 9f1b6c7b2d466ae15e586d9b2eda1a682396c428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 8 Jan 2024 09:21:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(nvim):=20align=20columns?= =?UTF-8?q?=20on=20the=20smart-splits=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lazyvim.json | 2 +- .../plugins/extras/editor/smart-splits.lua | 19 ------------------- .../lua/plugins/extras/util/smart-splits.lua | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 .config/nvim/lua/plugins/extras/editor/smart-splits.lua create mode 100644 .config/nvim/lua/plugins/extras/util/smart-splits.lua 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" }, + }, +}