live-server.nvim
live-server.nvim copied to clipboard
Lazy Config ?
Hi Aurum ,
This is not an issue but didn't know how to contact you lol . The installation is meant for Packer ? Lazy uses a dependencies key word in replace for a require but in this case it looks like you're not loading another plugin ... Just wanted to know if require should be changed to dependencies when using Lazy Plugin Manager .
{ "aurum77/live-server.nvim", build = function() require"live_server.util".install() end, cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" }, },
Hopefully you understand lol . I do think it still loads ...
hello there, sorry for the really really really late response. I finally took a look at this and it seems like this works:
{
"aurum77/live-server.nvim",
config = function()
require("plugins.live-server")
end,
cmd = {
"LiveServer",
"LiveServerStart",
"LiveServerStop",
"LiveServerInstall",
},
build = function()
require("live_server.util").install()
end,
},
(don't forget to replace the require inside the config function with your own)
Hello, I tried to config the plugin in Lazy and I cannot figure out how to change and say --port and --open. Would you kindly help in providing and example ?
Hello, I tried to config the plugin in Lazy and I cannot figure out how to change and say --port and --open. Would you kindly help in providing and example ?
Hello, I think it's supposed to be like this
require("live_server").setup({
port = 7777,
browser_command = "firefox",
quiet = false,
no_css_inject = true,
})
I had the same issue, but unfortunately your solution does not work. After digging into the source code, I found that in the validate function will return false as soon as a user_config parameter is not available or invalid
This will have the effect of always falling back to the default according to the setup function
so I think to solve it we should provide the configuration properties