No description
Find a file
2024-06-18 00:03:51 -03:00
.github/ISSUE_TEMPLATE issue template 2023-01-07 21:53:58 -06:00
doc feat(docs): update website 2024-01-24 10:06:48 -05:00
lua fix: infinite loop on the find_cached_dir function on the Windows OS 2024-06-18 00:03:51 -03:00
.gitignore initial commit 2023-01-07 20:42:18 -06:00
.stylua.toml initial commit 2023-01-07 20:42:18 -06:00
readme.md readme: replace yarn with pnpm link in installation example 2024-02-17 04:54:31 +01: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 {
    {
        '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):

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: 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)