better terminal
This commit is contained in:
parent
9281537c59
commit
6a5a1c91d4
|
@ -214,26 +214,50 @@ M.telescope = {
|
|||
},
|
||||
}
|
||||
|
||||
M.nvterm = {
|
||||
M.toggleterm = {
|
||||
plugin = true,
|
||||
|
||||
t = {
|
||||
-- preserve defaults
|
||||
["<F12>"] = {
|
||||
function()
|
||||
require("nvterm.terminal").toggle "float"
|
||||
end,
|
||||
"Toggle floating term",
|
||||
},
|
||||
},
|
||||
|
||||
n = {
|
||||
-- preserve defaults
|
||||
["<F12>"] = {
|
||||
function()
|
||||
require("nvterm.terminal").toggle "float"
|
||||
end,
|
||||
"Toggle floating term",
|
||||
"<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",
|
||||
},
|
||||
},
|
||||
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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue