add cmd mapping

This commit is contained in:
DefectingCat
2024-02-22 10:52:52 +08:00
parent 1cffba9972
commit 5590f670db
2 changed files with 25 additions and 1 deletions

View File

@ -54,7 +54,7 @@ update_ms = 500
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu lazy"
proc_sorting = "cpu direct"
#* Reverse sorting order, True or False.
proc_reversed = False

View File

@ -165,6 +165,18 @@ M.rua = {
end,
"Toggle horizontal term",
},
["<D-o>"] = {
function()
require("nvterm.terminal").toggle "horizontal"
end,
"Toggle horizontal term",
},
["<D-i>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
-- arrange buffer
["<leader>pl"] = {
@ -268,6 +280,18 @@ M.rua = {
end,
"Toggle horizontal term",
},
["<D-o>"] = {
function()
require("nvterm.terminal").toggle "horizontal"
end,
"Toggle horizontal term",
},
["<D-i>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
--[[ ["<Esc>"] = { vim.api.nvim_replace_termcodes("<C-\\><C-N>", true, true, true), "Escape terminal mode" }, ]]
},
}