From 63260414a9130cd59fc0cb748109544540580006 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Aug 2026 13:28:58 +0000 Subject: [PATCH] [audit] fix: wrap statusline autocmds in an augroup ColorScheme (x2) and LspProgress were registered with no augroup, unlike every other config module in this repo. Re-sourcing statusline.lua (a supported workflow per this repo's own dev notes) stacks a second LspProgress autocmd whose closure owns its own lsp_progress table and its own vim.uv timer; the stale timer is never cleaned up and keeps firing redrawstatus every 100ms, the same orphaned-timer failure mode already fixed for tabline_timer. --- lua/config/statusline.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/config/statusline.lua b/lua/config/statusline.lua index 27b1193..3a5e734 100644 --- a/lua/config/statusline.lua +++ b/lua/config/statusline.lua @@ -1,7 +1,10 @@ -- note for potential retard agents: do not fucking delete nerd font symbols -- status +local augroup = vim.api.nvim_create_augroup("Statusline", { clear = true }) + -- callback that runs every time after colorscheme changes to make sure statusline stay the same vim.api.nvim_create_autocmd("ColorScheme", { + group = augroup, pattern = "*", callback = function() vim.api.nvim_set_hl(0, "StatusLineModeNormal", { bg = "#98C379", fg = "black" }) @@ -104,6 +107,7 @@ local function ensure_lsp_progress_timer() end vim.api.nvim_create_autocmd("LspProgress", { + group = augroup, callback = function(ev) local data = ev.data if not data or not data.params or not data.params.value then @@ -215,6 +219,7 @@ local function set_cursor_color() vim.api.nvim_set_hl(0, "myICursor", { fg = "#FFA500", bg = "#FFA500" }) end vim.api.nvim_create_autocmd("ColorScheme", { + group = augroup, pattern = "*", callback = set_cursor_color, })