better terminal

This commit is contained in:
Christoph J. Scherr 2024-01-20 04:05:27 +01:00
parent 9281537c59
commit 6a5a1c91d4
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 58 additions and 17 deletions

View File

@ -214,26 +214,50 @@ M.telescope = {
}, },
} }
M.nvterm = { M.toggleterm = {
plugin = true, plugin = true,
t = {
-- preserve defaults
["<F12>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
},
n = { n = {
-- preserve defaults
["<F12>"] = { ["<F12>"] = {
function() "<cmd>ToggleTerm direction=float<cr>",
require("nvterm.terminal").toggle "float" "toggle terminal",
end, },
"Toggle floating term", ["<A-i>"] = {
"<cmd>ToggleTerm direction=float<cr>",
"toggle terminal",
},
["<A-t>"] = {
"<cmd>ToggleTerm direction=tab<cr>",
"toggle terminal",
},
["<A-h>"] = {
"<cmd>ToggleTerm direction=horizontal<cr>",
"toggle terminal",
},
["<A-v>"] = {
"<cmd>ToggleTerm direction=vertical<cr>",
"toggle terminal",
},
},
t = {
["<F12>"] = {
"<cmd>ToggleTerm direction=float<cr>",
"toggle terminal",
},
["<A-i>"] = {
"<cmd>ToggleTerm direction=float<cr>",
"toggle terminal",
},
["<A-t>"] = {
"<cmd>ToggleTerm direction=tab<cr>",
"toggle terminal",
},
["<A-h>"] = {
"<cmd>ToggleTerm direction=horizontal<cr>",
"toggle terminal",
},
["<A-v>"] = {
"<cmd>ToggleTerm direction=vertical<cr>",
"toggle terminal",
}, },
}, },
} }

View File

@ -228,6 +228,23 @@ local plugins = {
}, },
}, },
}, },
{
"NvChad/nvterm",
enabled = false,
},
{
"akinsho/toggleterm.nvim",
init = function ()
require("core.utils").load_mappings "toggleterm"
end,
cmd = "ToggleTerm",
opts = {
open_mapping = false,
float_opts = {
border = "curved",
},
},
},
} }
return plugins return plugins