Install nodejs and live-server npm package globally. Make sure you have npm in your PATH
.
For packer.nvim:
-- Live Server
use {
"Rogerskelamen/live-server.nvim",
config = function()
require "live-server".setup{}
end
}
Type :LiveServer start
to open a new instance of live-server in your web browser.
Type :LiveServer stop
to close all instances of live-server.
All credits goes to Tapio Vierros. This unofficial plugin uses Live Server which is under the MIT License.