No description
| .github | ||
| doc | ||
| lua | ||
| plugin | ||
| .editorconfig | ||
| .gitignore | ||
| .luarc.json | ||
| .pre-commit-config.yaml | ||
| LICENSE | ||
| live-server.nvim-scm-1.rockspec | ||
| readme.md | ||
| selene.toml | ||
| stylua.toml | ||
| vim.toml | ||
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