nvim c*m
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
require("zterm-navigator").setup({
|
||||||
|
-- Default keybindings (set to false to disable)
|
||||||
|
left = "<A-Left>",
|
||||||
|
right = "<A-Right>",
|
||||||
|
up = "<A-Up>",
|
||||||
|
down = "<A-Down>",
|
||||||
|
|
||||||
|
-- statusline {
|
||||||
|
-- enabled = false
|
||||||
|
-- },
|
||||||
|
})
|
||||||
@@ -11,22 +11,6 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
|
|||||||
map("v", "<C-Up>", ":m '<-2<CR>gv=gv", { desc = "Move selected text up" })
|
map("v", "<C-Up>", ":m '<-2<CR>gv=gv", { desc = "Move selected text up" })
|
||||||
map("v", "<C-Down>", ":m '>+1<CR>gv=gv", { desc = "Move selected text down" })
|
map("v", "<C-Down>", ":m '>+1<CR>gv=gv", { desc = "Move selected text down" })
|
||||||
|
|
||||||
-- Alt + Arrow Key to change buffer
|
|
||||||
-- map("n", "<A-Left>", "<C-w>h", { desc = "Move to left split" })
|
|
||||||
-- map("n", "<A-Down>", "<C-w>j", { desc = "Move to bottom split" })
|
|
||||||
-- map("n", "<A-Up>", "<C-w>k", { desc = "Move to top split" })
|
|
||||||
-- map("n", "<A-Right>", "<C-w>l", { desc = "Move to right split" })
|
|
||||||
|
|
||||||
map("n", "<A-Left>", "<cmd>lua require('tmux').move_left()<CR>", { desc = "Move to left split" })
|
|
||||||
map("n", "<A-Down>", "<cmd>lua require('tmux').move_bottom()<CR>", { desc = "Move to bottom split" })
|
|
||||||
map("n", "<A-Up>", "<cmd>lua require('tmux').move_top()<CR>", { desc = "Move to top split" })
|
|
||||||
map("n", "<A-Right>", "<cmd>lua require('tmux').move_right()<CR>", { desc = "Move to right split" })
|
|
||||||
|
|
||||||
map("n", "<C-Left>", "<cmd>lua require('tmux').resize_left()<CR>", { desc = "Move to left split" })
|
|
||||||
map("n", "<C-Down>", "<cmd>lua require('tmux').resize_bottom()<CR>", { desc = "Move to bottom split" })
|
|
||||||
map("n", "<C-Up>", "<cmd>lua require('tmux').resize_top()<CR>", { desc = "Move to top split" })
|
|
||||||
map("n", "<C-Right>", "<cmd>lua require('tmux').resize_right()<CR>", { desc = "Move to right split" })
|
|
||||||
|
|
||||||
-- Copilot Chat buffer
|
-- Copilot Chat buffer
|
||||||
map("n", "<A-c>", vim.cmd.CopilotChatToggle)
|
map("n", "<A-c>", vim.cmd.CopilotChatToggle)
|
||||||
map("i", "<A-c>", vim.cmd.CopilotChatToggle)
|
map("i", "<A-c>", vim.cmd.CopilotChatToggle)
|
||||||
|
|||||||
@@ -298,4 +298,10 @@ return {
|
|||||||
-- require("config.neoformat")
|
-- require("config.neoformat")
|
||||||
-- end,
|
-- end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Zacharias-Brohn/zterm-navigator.nvim",
|
||||||
|
config = function()
|
||||||
|
require("config.zterm-navigator")
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user