From 62c6cce5eb04448602c85f656bae76d7dab64637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 6 Oct 2023 12:50:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20new=20live-server=20p?= =?UTF-8?q?lugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this new plugin has a command for toggling which is useful for doing binds easier than having a start and stop commands --- .config/nvim/lua/plugins/live-server.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/live-server.lua b/.config/nvim/lua/plugins/live-server.lua index fd367b32..a0f6c6ff 100644 --- a/.config/nvim/lua/plugins/live-server.lua +++ b/.config/nvim/lua/plugins/live-server.lua @@ -1,8 +1,12 @@ return { { - "barrett-ruth/live-server.nvim", - build = "yarn global add live-server", - cmd = { "LiveServerStop", "LiveServerStart" }, - config = true, + "aurum77/live-server.nvim", + build = function() + require("live_server.util").install() + end, + cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" }, + keys = { + { "cs", "LiveServer", desc = "Toggle LiveServer" }, + }, }, }