From 254be4c8c1d7aff2e88ef4a2a1612d6ff3e7c10e Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 14 Mar 2023 16:10:47 +0900 Subject: [PATCH] add: nvim: terminal mode keymaps --- dotfiles/neovim/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 9e97ab9..7d140a3 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -162,6 +162,13 @@ require('catppuccin').setup({ }) vim.cmd.colorscheme "catppuccin" +----------------------------------------------------------- +-- some terminalmode settings +vim.keymap.set('t', 'h', 'h', { noremap = true, desc = "Exit terminal-mode and move to left window."}) +vim.keymap.set('t', 'j', 'j', { noremap = true, desc = "Exit terminal-mode and move to down window."}) +vim.keymap.set('t', 'k', 'k', { noremap = true, desc = "Exit terminal-mode and move to up window."}) +vim.keymap.set('t', 'l', 'l', { noremap = true, desc = "Exit terminal-mode and move to right window."}) + ----------------------------------------------------------- -- to use PowerShell on Windows -- original code from :h powershell