- Update homepage URL to barrettruth.com - Replace setup() docs with vim.g.live_server config - Add luarocks installation to readme - Remove lazy.nvim specific example
907 B
907 B
live-server.nvim
Live reload HTML, CSS, and JavaScript files inside Neovim with the power of live-server.
Installation
Install using your package manager of choice or via luarocks:
luarocks install live-server.nvim
Dependencies
- live-server (install globally via npm/pnpm/yarn)
Configuration
Configure via vim.g.live_server before the plugin loads:
vim.g.live_server = {
args = { '--port=5555' },
}
See :help live-server for available options.
Usage
:LiveServerStart [dir] " Start the server
:LiveServerStop [dir] " Stop the server
:LiveServerToggle [dir] " Toggle the server
The server runs by default on http://localhost:5555.
Documentation
:help live-server.nvim