add terminal
This commit is contained in:
parent
608fbb0d71
commit
67546b135c
@ -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
6
lua/plugins/nvterm.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
"NvChad/nvterm",
|
||||
config = function()
|
||||
require("nvterm").setup()
|
||||
end,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user