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,
n = {
t = {
-- 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 = {
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",
}, },
}, },
} }
@ -280,8 +304,8 @@ M.movements = {
["#"] = { "'", "go to mark" }, ["#"] = { "'", "go to mark" },
-- spell -- spell
["]s"] = { "]s", "go to next spelling mark"}, ["]s"] = { "]s", "go to next spelling mark" },
["[s"] = { "[s", "go to last spelling mark"}, ["[s"] = { "[s", "go to last spelling mark" },
}, },
v = { v = {
--big move --big move

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