use builtin LazyVim.terminal instead

This commit is contained in:
Baipyrus 2024-11-02 03:03:02 +01:00
parent f89e199cfd
commit 82e70e57fe

View File

@ -13,7 +13,9 @@ vim.keymap.set("n", "<leader>q", vim.diagnostic.setqflist, { desc = "Open diagno
vim.keymap.del("n", "<C-/>")
vim.keymap.del("n", "<leader>ft")
vim.keymap.del("n", "<leader>fT")
vim.keymap.set({ "n", "v" }, "<leader>to", "<cmd>term<cr>", { desc = "[T]erminal [O]pen" })
vim.keymap.set({ "n", "v" }, "<leader>to", function()
LazyVim.terminal()
end, { desc = "[T]erminal [O]pen" })
-- Disable arrow keys in normal mode
vim.keymap.set({ "n", "v" }, "<left>", '<cmd>echo "Use h to move!!"<CR>')