aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-05-07 19:36:30 +0200
committerJustin M. Keyes <justinkz@gmail.com>2026-05-07 19:44:33 +0200
commitb705969b4e44d9626e724cc6e3f78feafe6d62ed (patch)
treeebc376de5c785dc880399e6a8499e0f26fd3909a /plugin
parentdocs: AGENTS.md (diff)
downloadnvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.tar
nvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.tar.gz
nvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.tar.bz2
nvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.tar.lz
nvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.tar.xz
nvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.tar.zst
nvim-lspconfig-b705969b4e44d9626e724cc6e3f78feafe6d62ed.zip
fix: logic bugs found by AI
1. `plugin/lspconfig.lua`: LspRestart timer was never closed after firing, leaking a libuv handle on every invocation. 2. `lsp/muon.lua`: Formatting cmd (a list) with %s, producing table: 0x... instead of the command.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lspconfig.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua
index 5db58fbf..38fc5c0a 100644
--- a/plugin/lspconfig.lua
+++ b/plugin/lspconfig.lua
@@ -158,6 +158,7 @@ if vim.fn.has('nvim-0.11.2') == 1 then
for name in vim.iter(client_names) do
vim.schedule_wrap(vim.lsp.enable)(name)
end
+ timer:close()
end)
end, {
desc = 'Restart the given client',