From 82e70e57fee5832b7ee2a8d8af05916d9e79fe44 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 2 Nov 2024 03:03:02 +0100 Subject: [PATCH] use builtin LazyVim.terminal instead --- lua/config/keymaps.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index c1ab106..d774638 100755 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -13,7 +13,9 @@ vim.keymap.set("n", "q", vim.diagnostic.setqflist, { desc = "Open diagno vim.keymap.del("n", "") vim.keymap.del("n", "ft") vim.keymap.del("n", "fT") -vim.keymap.set({ "n", "v" }, "to", "term", { desc = "[T]erminal [O]pen" }) +vim.keymap.set({ "n", "v" }, "to", function() + LazyVim.terminal() +end, { desc = "[T]erminal [O]pen" }) -- Disable arrow keys in normal mode vim.keymap.set({ "n", "v" }, "", 'echo "Use h to move!!"')