add: nvim: terminal mode keymaps

This commit is contained in:
qwjyh 2023-03-14 16:10:47 +09:00
parent 6b6da565ee
commit 254be4c8c1

View file

@ -162,6 +162,13 @@ require('catppuccin').setup({
})
vim.cmd.colorscheme "catppuccin"
-----------------------------------------------------------
-- some terminalmode settings
vim.keymap.set('t', '<C-w>h', '<C-\\><C-N><C-w>h', { noremap = true, desc = "Exit terminal-mode and move to left window."})
vim.keymap.set('t', '<C-w>j', '<C-\\><C-N><C-w>j', { noremap = true, desc = "Exit terminal-mode and move to down window."})
vim.keymap.set('t', '<C-w>k', '<C-\\><C-N><C-w>k', { noremap = true, desc = "Exit terminal-mode and move to up window."})
vim.keymap.set('t', '<C-w>l', '<C-\\><C-N><C-w>l', { noremap = true, desc = "Exit terminal-mode and move to right window."})
-----------------------------------------------------------
-- to use PowerShell on Windows
-- original code from :h powershell