Skip to content

Releases: selimacerbas/live-server.nvim

v1.3.0

19 Apr 21:21
084d69b

Choose a tag to compare

  • Add configurable host binding via the host field on server.start({ host = ... }). Default remains 127.0.0.1. Set to 0.0.0.0 to expose externally (useful in containers).

v1.2.2

22 Mar 08:50

Choose a tag to compare

  • Fix recursive file watching on Linux — v1.2.1 fallback never triggered because UV_FS_EVENT_RECURSIVE is silently ignored on Linux (no error)
  • Now detects platform via uv.os_uname() and always uses per-directory watchers on Linux
  • Fixed callback path construction for subdirectory watchers

v1.2.1

21 Mar 08:43

Choose a tag to compare

  • Fix recursive file watching on Linux — subdirectory changes (e.g. css/style.css) now trigger reloads
  • Falls back to per-directory watchers when UV_FS_EVENT_RECURSIVE is not supported
  • Dynamically watches newly created directories

v1.2.0

13 Mar 01:38

Choose a tag to compare

  • Add /__live/inject HTTP endpoint for external SSE event injection
  • Support port 0 (OS-assigned) with actual port resolution via getsockname()

v1.1.0

15 Feb 12:08

Choose a tag to compare

New

  • S.send_event(inst, event_type, data) — public API for sending custom SSE events to connected browsers. Exposes the internal broadcast mechanism so consumers (e.g. markdown-preview.nvim) can send arbitrary event types beyond the built-in `reload`.

v1.0.0

12 Feb 17:46

Choose a tag to compare

live-server.nvim v1.0.0

Pure-Lua local web server for Neovim with live-reload. Zero external dependencies.

Features

  • SSE live-reload with configurable debouncing
  • CSS hot-inject — swap stylesheets without full page reload
  • Auto-start on filetype (e.g. open an HTML file → server starts)
  • Statusline component[LS :8000] for lualine/statusline
  • .liveignore — skip file watcher noise (node_modules, *.log, etc.)
  • CORS headers — configurable Access-Control-Allow-Origin
  • Telescope integration — path and port pickers
  • Directory listing — styled index when no index.html exists
  • Styled error pages — dark-mode-aware 404/400 pages
  • Same-port retargeting — reuse browser tab when switching roots
  • Custom index names — try index.html, index.htm, or your own list
  • Vimdoc — full :help live-server.nvim documentation
  • Graceful exit — servers stop automatically on VimLeavePre

Install

{ "selimacerbas/live-server.nvim", opts = {} }

See README for full setup and configuration.