mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-10 09:24:29 +02:00
update
This commit is contained in:
parent
426ec2b924
commit
10311584ad
3 changed files with 15 additions and 8 deletions
|
@ -29,6 +29,12 @@ function _HTOP_TOGGLE()
|
|||
htop:toggle()
|
||||
end
|
||||
|
||||
function _BTOP_TOGGLE()
|
||||
local Terminal = require("toggleterm.terminal").Terminal
|
||||
local htop = Terminal:new({ cmd = "btop", hidden = true })
|
||||
htop:toggle()
|
||||
end
|
||||
|
||||
function _PYTHON_TOGGLE()
|
||||
local Terminal = require("toggleterm.terminal").Terminal
|
||||
local python = Terminal:new({ cmd = "python", hidden = true })
|
||||
|
@ -282,6 +288,7 @@ local mappings = {
|
|||
n = { "<cmd>lua _NODE_TOGGLE()<cr>", "Node" },
|
||||
u = { "<cmd>lua _NCDU_TOGGLE()<cr>", "NCDU" },
|
||||
t = { "<cmd>lua _HTOP_TOGGLE()<cr>", "Htop" },
|
||||
b = { "<cmd>lua _BTOP_TOGGLE()<cr>", "Btop" },
|
||||
p = { "<cmd>lua _PYTHON_TOGGLE()<cr>", "Python" },
|
||||
f = { "<cmd>ToggleTerm direction=float<cr>", "Float" },
|
||||
h = { "<cmd>ToggleTerm size=10 direction=horizontal<cr>", "Horizontal" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue