mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
add: live server
This commit is contained in:
parent
4ba72487b4
commit
ef6ac90acf
3 changed files with 13 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
"gitsigns.nvim": { "branch": "main", "commit": "0b04035bb7b3c83e999b9676e2fb46fd0aa9f910" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "0507e19289539396313503f6eb6b02bbe8a5e483" },
|
||||
"live-server.nvim": { "branch": "main", "commit": "f34ae262bf046981d9e5f7cd4f41a353a9647a22" },
|
||||
"lsp-progress.nvim": { "branch": "main", "commit": "55a04895ea20c365b670051a3128265d43bdfa3d" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "9ae570e206360e47d30b4c35a4550c165f4ea7b7" },
|
||||
|
|
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