bug: The plugin crashes when executing :LiveServerStart in oil.nvim window
bug
### Prerequisites
- [x] I have searched [existing issues](https://github.com/barrettruth/live-server.nvim/issues)
- [x] I have updated to the latest version
### Neovim version
```text
NVIM v0.11.3
Build type: RelWithDebInfo
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info
```
### Operating system
Linux Mint 22.1 Cinnamon
### Description
Whenever you try to execute the command :LiveServerStart inside of a oil.nvim window (or buffer, sorry if I confuse the terminology), it crashes the entire text-editor. It just leaves you with with a frozen oil.nvim window.
It also makes the CPU to start rising temperature, but I don't know if that is a result of the plugin crashing or if it comes from another place.
Crashed window screenshot:
<img width="1916" height="1168" alt="Image" src="https://github.com/user-attachments/assets/e5de4aca-0d94-46da-aa98-2524d3ef5458" />
Note: I tried with repro.lua and I get the same results, the crash and the rising CPU temperature.
### Steps to reproduce
1. Open Neovim
2. Open oil.nvim or execute :Oil
3. Execute :LiveServerStart
### Health check
```text
live-server: 1 ❌
- ❌ ERROR No healthcheck found for "live-server" plugin.
```
### Minimal reproduction
```lua
vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))()
require('lazy.nvim').setup({
spec = {
{
'barrett-ruth/live-server.nvim',
opts = {},
},
},
})
```
关闭于 2026-03-06 3 条评论