From aa9dea494a983f80db5693b540d0d53217763df1 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 7 Mar 2024 14:17:46 +0100 Subject: [PATCH] open terminal keymap --- lua/keymaps.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 069771f..cc61d76 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -14,6 +14,9 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) +-- Open terminal in current window +vim.keymap.set({ 'n', 'v' }, 'to', 'term', { desc = '[T]erminal [O]pen' }) + -- Disable arrow keys in normal mode vim.keymap.set({ 'n', 'v' }, '', 'echo "Use h to move!!"') vim.keymap.set({ 'n', 'v' }, '', 'echo "Use l to move!!"')