feat: replace npm live-server with pure-Lua HTTP server #29
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/live-server.nvim!29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/pure-lua-server"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The plugin requires users to install Node.js and the
live-servernpmpackage globally. This is a heavyweight external dependency for what
amounts to a simple local dev-server workflow, and it creates friction
for users who don't otherwise need Node.js.
Solution
Replace the npm shell-out with a pure-Lua HTTP server built on
vim.uv(libuv bindings), eliminating all external dependencies. The new server
supports static file serving, SSE-based live reload, CSS hot-swap
without full page reload, directory listings, and recursive file
watching with configurable debounce.
Minimum Neovim version is bumped to 0.10 for
vim.uvandvim.ui.open.The old
args-based config is automatically migrated with a deprecationwarning.
Closes #28.