feat(nvim): new live-server plugin

this new plugin has a command for toggling which is useful for doing binds easier than having a
start and stop commands
This commit is contained in:
Sergio Laín 2023-10-06 12:50:38 +02:00
parent 272fa9187a
commit 62c6cce5eb
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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 = {
{ "<leader>cs", "<cmd>LiveServer<CR>", desc = "Toggle LiveServer" },
},
},
}