From 8de63b5f59e1be7878bd62dbf637027ce12b55e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sat, 2 Sep 2023 23:08:34 +0200 Subject: [PATCH] feat(plugins): Add LiveServer plugin --- init.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4e5b3fb..1640f45 100644 --- a/init.lua +++ b/init.lua @@ -182,6 +182,10 @@ local config = { -- Debugger mappings ["dl"] = { name = "Load launch.json" }, + ["L"] = { + "LiveServer", + desc = " Live server" + }, -- Config loading ["dlc"] = { function() require("dap.ext.vscode").load_launchjs(nil, { cppdbg = { "c", "cpp", "asm" } }) end, @@ -204,7 +208,7 @@ local config = { ["ms"] = { "MarkdownPreviewStop", desc = "Markdown preview stop" }, ["mt"] = { "MarkdownPreviewToggle", desc = "Markdown preview toggle" }, -- Vimtex mappings - -- ["x"] = { name = " LaTeX" }, + ["x"] = { name = " LaTeX" }, ["xi"] = { "VimtexInfo", desc = "Info" }, ["xI"] = { "VimtexInfoFull", desc = "Full info" }, ["xt"] = { "VimtexTocOpen", desc = "Open table of contents" }, @@ -510,6 +514,15 @@ local config = { 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 { -- LaTeX