Replaced toggleterm with nvterm

This commit is contained in:
2023-10-01 20:41:02 +02:00
parent 9b2be31be5
commit b64bb82456
3 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
return {
"NvChad/nvterm",
keys = {
{
"<A-t>",
function()
require("nvterm.terminal").toggle("float")
end,
desc = "Open float terminal",
},
{
"<A-T>",
function()
require("nvterm.terminal").toggle("horizontal")
end,
desc = "Open hortizontal terminal",
},
},
config = function()
local nvterm = require("nvterm")
nvterm.setup({
terminals = {
type_opts = {
float = {
row = 0.1,
col = 0.1,
width = 0.8,
height = 0.8,
},
},
},
})
end,
}