mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
add: live server
This commit is contained in:
parent
4ba72487b4
commit
ef6ac90acf
3 changed files with 13 additions and 1 deletions
11
lua/plugins/liveserver.lua
Normal file
11
lua/plugins/liveserver.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
"barrett-ruth/live-server.nvim",
|
||||
build = "npm i -g live-server",
|
||||
cmd = { "LiveServerStart", "LiveServerStop" },
|
||||
config = true,
|
||||
keys = {
|
||||
{ "<leader>rl", "", desc = " LiveServer" },
|
||||
{ "<leader>rls", "<cmd>LiveServerStart<cr>", desc = "LiveServerStart" },
|
||||
{ "<leader>rlq", "<cmd>LiveServerStop<cr>", desc = "LiveServerStop" },
|
||||
},
|
||||
}
|
|
@ -226,7 +226,7 @@ M.mappings = {
|
|||
},
|
||||
r = {
|
||||
name = " Run",
|
||||
l = { "<cmd>edit term://live-server<cr>", "Live Server" },
|
||||
-- l = { "<cmd>edit term://live-server<cr>", "Live Server" },
|
||||
s = {
|
||||
'<cmd>autocmd bufwritepost [^_]*.sass,[^_]*.scss silent exec "!sass %:p %:r.css"<CR>',
|
||||
"Auto Compile Sass",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue