feat(mappings): enable window commands in terminal mode

This commit is contained in:
2025-10-22 11:34:43 +02:00
parent 5388da2989
commit c0b30569ef
+3
View File
@@ -28,6 +28,9 @@ vim.keymap.set("t", "<C-\\>", function()
) )
end) end)
-- Enable <C-w> window commands in terminal mode
vim.keymap.set("t", "<C-w>", "<C-\\><C-n><C-w>")
-- Use :diffput/get instead of normal one to allow staging visual selection -- Use :diffput/get instead of normal one to allow staging visual selection
vim.keymap.set({ "n", "x" }, "<leader>dp", ":diffput<CR>") vim.keymap.set({ "n", "x" }, "<leader>dp", ":diffput<CR>")
vim.keymap.set({ "n", "x" }, "<leader>do", ":diffget<CR>") vim.keymap.set({ "n", "x" }, "<leader>do", ":diffget<CR>")