mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
update
This commit is contained in:
parent
831f50d124
commit
75ef49b016
5 changed files with 31 additions and 22 deletions
|
@ -35,6 +35,12 @@ function _PYTHON_TOGGLE()
|
|||
python:toggle()
|
||||
end
|
||||
|
||||
function _LIVE_SERVER()
|
||||
local Terminal = require("toggleterm.terminal").Terminal
|
||||
local live_server = Terminal:new({ cmd = "live-server", hidden = true })
|
||||
live_server:toggle()
|
||||
end
|
||||
|
||||
local setup = {
|
||||
plugins = {
|
||||
marks = true, -- shows a list of your marks on ' and `
|
||||
|
@ -259,6 +265,8 @@ local mappings = {
|
|||
|
||||
t = {
|
||||
name = "Terminal",
|
||||
--l = { "<cmd>lua _LIVE_SERVER()<cr>", "Live Server" },
|
||||
l = { "<cmd>ToggleTerm size=10 direction=horizontal<cr>clear<cr>live-server<cr>", "Live Server" },
|
||||
n = { "<cmd>lua _NODE_TOGGLE()<cr>", "Node" },
|
||||
u = { "<cmd>lua _NCDU_TOGGLE()<cr>", "NCDU" },
|
||||
t = { "<cmd>lua _HTOP_TOGGLE()<cr>", "Htop" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue