Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barrett-ruth/live-server.nvim
Live reload local development servers inside of neovim
https://github.com/barrett-ruth/live-server.nvim
live-server neovim neovim-plugin
Last synced: about 2 months ago
JSON representation
Live reload local development servers inside of neovim
- Host: GitHub
- URL: https://github.com/barrett-ruth/live-server.nvim
- Owner: barrett-ruth
- Created: 2023-01-08T00:19:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-22T00:13:58.000Z (2 months ago)
- Last Synced: 2024-07-22T01:28:14.428Z (2 months ago)
- Topics: live-server, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 15.6 KB
- Stars: 99
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# live-server.nvim
Live reload HTML, CSS, and JavaScript files inside neovim with the power of
[live-server](https://www.npmjs.com/package/live-server).## Installation
1. Install [live-server](https://www.npmjs.com/package/live-server) globally
with your node.js package manager of choice.2. Install regularly with your neovim package manager
For example, a config with [pnpm](https://pnpm.io) and
[lazy.nvim](https://github.com/folke/lazy.nvim) may look like the following:```lua
require('lazy').setup {
{
'barrett-ruth/live-server.nvim',
build = 'pnpm add -g live-server',
cmd = { 'LiveServerStart', 'LiveServerStop' },
config = true
}
}
```## Configuration
Configure via the setup function (or use the defaults with no arguments):
```lua
require('live-server').setup(opts)
```See `:h live-server` for more information
## Usage
`:LiveServerStart`: start the live server
`:LiveServerStop`: stop the live server
## Acknowledgements
1. [mazeloth/live-server](https://github.com/manzeloth/live-server/blob/main/plugin/live-server.vim):
the first ever live-server port to vim
2. [aurum77/live-server.nvim](https://github.com/aurum77/live-server.nvim): the
first live-server port to neovim (however, it unecessarily depends on `npm`
and didn't quite cut it for me)