No description
|
|
||
|---|---|---|
| .github/ISSUE_TEMPLATE | ||
| doc | ||
| lua | ||
| .gitignore | ||
| .stylua.toml | ||
| readme.md | ||
live-server.nvim
Live reload HTML, CSS, and JavaScript files inside neovim with the power of live-server.
Installation
-
Install live-server globally with your node.js package manager of choice.
-
Install regularly with your neovim package manager
For example, a config with yarn and lazy.nvim may look like the following:
require('lazy').setup {
{
'barrett-ruth/live-server.nvim',
build = 'yarn global add live-server',
config = true
}
}
Configuration
Configure via the setup function (or use the defaults with no arguments):
require('live-server').setup(opts)
See :h live-server for more information
Usage
:LiveServerStart: start the live server
:LiveServerStop: stop the live server
Acknowledgements
- mazeloth/live-server: the first ever live-server port to vim
- aurum77/live-server.nvim: the
first live-server port to neovim (however, it unecessarily depends on
npmand didn't quite cut it for me)