No description
Find a file
2026-02-03 21:05:52 -05:00
.github fix: suppress deprecation stack trace for cleaner UX 2026-02-03 21:05:52 -05:00
doc feat(doc): optional dir arg to commands 2024-07-13 19:10:13 -05:00
lua fix: suppress deprecation stack trace for cleaner UX 2026-02-03 21:05:52 -05:00
plugin refactor: use vim.g config and lazy loading 2026-02-03 20:13:12 -05:00
.editorconfig chore: update project configs to match cp.nvim 2026-02-03 21:00:07 -05:00
.gitignore chore: update project configs to match cp.nvim 2026-02-03 21:00:07 -05:00
.luarc.json chore: update project configs to match cp.nvim 2026-02-03 21:00:07 -05:00
.pre-commit-config.yaml feat: run pre-commit 2026-02-03 21:03:18 -05:00
live-server.nvim-scm-1.rockspec chore: add CI, pre-commit, and luarocks configs 2026-02-03 21:01:57 -05:00
readme.md Update readme.md 2026-01-10 11:03:18 -06:00
selene.toml fix: suppress deprecation stack trace for cleaner UX 2026-02-03 21:05:52 -05:00
stylua.toml chore: update project configs to match cp.nvim 2026-02-03 21:00:07 -05:00
vim.toml fix: suppress deprecation stack trace for cleaner UX 2026-02-03 21:05:52 -05:00

live-server.nvim

Live reload HTML, CSS, and JavaScript files inside neovim with the power of live-server.

Installation

  1. Install 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 and lazy.nvim may look like the following:

require('lazy').setup {
    {
        'barrettruth/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):

require('live-server').setup(opts)

See :h live-server for more information

Usage

:LiveServerStart: start the live server

:LiveServerStop: stop the live server

Development Server

The server runs by default on http://localhost:5555. You can access your project by opening this URL in your web browser.

Acknowledgements

  1. mazeloth/live-server: the first ever live-server port to vim
  2. 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)