feat(plugins): Add LiveServer plugin
This commit is contained in:
parent
1d70d57a24
commit
8de63b5f59
15
init.lua
15
init.lua
@ -182,6 +182,10 @@ local config = {
|
|||||||
|
|
||||||
-- Debugger mappings
|
-- Debugger mappings
|
||||||
["<leader>dl"] = { name = "Load launch.json" },
|
["<leader>dl"] = { name = "Load launch.json" },
|
||||||
|
["<leader>L"] = {
|
||||||
|
"<cmd>LiveServer<cr>",
|
||||||
|
desc = " Live server"
|
||||||
|
},
|
||||||
-- Config loading
|
-- Config loading
|
||||||
["<leader>dlc"] = {
|
["<leader>dlc"] = {
|
||||||
function() require("dap.ext.vscode").load_launchjs(nil, { cppdbg = { "c", "cpp", "asm" } }) end,
|
function() require("dap.ext.vscode").load_launchjs(nil, { cppdbg = { "c", "cpp", "asm" } }) end,
|
||||||
@ -204,7 +208,7 @@ local config = {
|
|||||||
["<leader>ms"] = { "<cmd>MarkdownPreviewStop<cr>", desc = "Markdown preview stop" },
|
["<leader>ms"] = { "<cmd>MarkdownPreviewStop<cr>", desc = "Markdown preview stop" },
|
||||||
["<leader>mt"] = { "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown preview toggle" },
|
["<leader>mt"] = { "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown preview toggle" },
|
||||||
-- Vimtex mappings
|
-- Vimtex mappings
|
||||||
-- ["<leader>x"] = { name = " LaTeX" },
|
["<leader>x"] = { name = " LaTeX" },
|
||||||
["<leader>xi"] = { "<cmd>VimtexInfo<cr>", desc = "Info" },
|
["<leader>xi"] = { "<cmd>VimtexInfo<cr>", desc = "Info" },
|
||||||
["<leader>xI"] = { "<cmd>VimtexInfoFull<cr>", desc = "Full info" },
|
["<leader>xI"] = { "<cmd>VimtexInfoFull<cr>", desc = "Full info" },
|
||||||
["<leader>xt"] = { "<cmd>VimtexTocOpen<cr>", desc = "Open table of contents" },
|
["<leader>xt"] = { "<cmd>VimtexTocOpen<cr>", desc = "Open table of contents" },
|
||||||
@ -510,6 +514,15 @@ local config = {
|
|||||||
cmd = { "PIO", "PIOInit", "PIOInstall", "PIOUninstall", "PIONewProject", "PIOAddLibrary", "PIORemoveLibrary" },
|
cmd = { "PIO", "PIOInit", "PIOInstall", "PIOUninstall", "PIONewProject", "PIOAddLibrary", "PIORemoveLibrary" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Live server
|
||||||
|
{
|
||||||
|
"aurum77/live-server.nvim",
|
||||||
|
run = function()
|
||||||
|
require"live_server.util".install()
|
||||||
|
end,
|
||||||
|
cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" },
|
||||||
|
},
|
||||||
|
|
||||||
-- Text related
|
-- Text related
|
||||||
{
|
{
|
||||||
-- LaTeX
|
-- LaTeX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user