add terminal

This commit is contained in:
Timofey.Kovalev 2024-11-24 01:59:34 +03:00
parent 608fbb0d71
commit 67546b135c
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
local map = vim.keymap.set
local dap = require("dap")
local term = require("nvterm.terminal")
map("n", "<C-left>", "<C-o>", { desc = "LSP Back" })
map("n", "<C-right>", "<C-i>", { desc = "LSP Forward" })
@ -24,6 +25,11 @@ map("n", "<S-tab>", ":BufferPrevious<CR>", { desc = "Previous tab" })
-- dap
map("n", "<leader>bb", dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
-- nvterm
map("n", "<C-t>", function()
term.toggle("horizontal")
end, { desc = "Open terminal" })
-- menu
local menu = require("menu")

6
lua/plugins/nvterm.lua Normal file
View File

@ -0,0 +1,6 @@
return {
"NvChad/nvterm",
config = function()
require("nvterm").setup()
end,
}