From 918d3654c5613601ae5a6959629e89f6c7be52b6 Mon Sep 17 00:00:00 2001 From: inorishio Date: Mon, 19 Jan 2026 19:29:16 +0100 Subject: [PATCH] nvim c*m --- lua/config/zterm-navigator.lua | 11 +++++++++++ lua/mappings.lua | 16 ---------------- lua/plugins/init.lua | 6 ++++++ 3 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 lua/config/zterm-navigator.lua diff --git a/lua/config/zterm-navigator.lua b/lua/config/zterm-navigator.lua new file mode 100644 index 0000000..36c923f --- /dev/null +++ b/lua/config/zterm-navigator.lua @@ -0,0 +1,11 @@ +require("zterm-navigator").setup({ + -- Default keybindings (set to false to disable) + left = "", + right = "", + up = "", + down = "", + + -- statusline { + -- enabled = false + -- }, +}) diff --git a/lua/mappings.lua b/lua/mappings.lua index 98307fa..5046aa4 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -11,22 +11,6 @@ map("n", ";", ":", { desc = "CMD enter command mode" }) map("v", "", ":m '<-2gv=gv", { desc = "Move selected text up" }) map("v", "", ":m '>+1gv=gv", { desc = "Move selected text down" }) --- Alt + Arrow Key to change buffer --- map("n", "", "h", { desc = "Move to left split" }) --- map("n", "", "j", { desc = "Move to bottom split" }) --- map("n", "", "k", { desc = "Move to top split" }) --- map("n", "", "l", { desc = "Move to right split" }) - -map("n", "", "lua require('tmux').move_left()", { desc = "Move to left split" }) -map("n", "", "lua require('tmux').move_bottom()", { desc = "Move to bottom split" }) -map("n", "", "lua require('tmux').move_top()", { desc = "Move to top split" }) -map("n", "", "lua require('tmux').move_right()", { desc = "Move to right split" }) - -map("n", "", "lua require('tmux').resize_left()", { desc = "Move to left split" }) -map("n", "", "lua require('tmux').resize_bottom()", { desc = "Move to bottom split" }) -map("n", "", "lua require('tmux').resize_top()", { desc = "Move to top split" }) -map("n", "", "lua require('tmux').resize_right()", { desc = "Move to right split" }) - -- Copilot Chat buffer map("n", "", vim.cmd.CopilotChatToggle) map("i", "", vim.cmd.CopilotChatToggle) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 24e260b..eb6c592 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -298,4 +298,10 @@ return { -- require("config.neoformat") -- end, }, + { + "Zacharias-Brohn/zterm-navigator.nvim", + config = function() + require("config.zterm-navigator") + end, + }, }