From 194442f0d62ec98ea4ff238fc75c97c6f398212a Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Fri, 4 Apr 2025 13:29:03 +0300 Subject: feat: add `smart-splits.nvim` for integration with WezTerm --- lua/config/plugins/extra.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'lua/config/plugins/extra.lua') diff --git a/lua/config/plugins/extra.lua b/lua/config/plugins/extra.lua index d1e1a4e..4d5b9dc 100644 --- a/lua/config/plugins/extra.lua +++ b/lua/config/plugins/extra.lua @@ -1,4 +1,29 @@ return { + { + "smart-splits.nvim", + after = function(_) + local map = vim.keymap.set + + map("n", "", require("smart-splits").move_cursor_left) + map("n", "", require("smart-splits").move_cursor_down) + map("n", "", require("smart-splits").move_cursor_up) + map("n", "", require("smart-splits").move_cursor_right) + map("n", "", require("smart-splits").move_cursor_left) + map("n", "", require("smart-splits").move_cursor_down) + map("n", "", require("smart-splits").move_cursor_up) + map("n", "", require("smart-splits").move_cursor_right) + + map("n", "", require("smart-splits").resize_left) + map("n", "", require("smart-splits").resize_down) + map("n", "", require("smart-splits").resize_up) + map("n", "", require("smart-splits").resize_right) + map("n", "", require("smart-splits").resize_left) + map("n", "", require("smart-splits").resize_down) + map("n", "", require("smart-splits").resize_up) + map("n", "", require("smart-splits").resize_right) + end, + }, + { "which-key.nvim", event = "DeferredUIEnter", -- cgit v1.2.3-70-g09d2