From 757569a9eb007da2d23e518f4120374881bf1d90 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:09 +0100 Subject: fix(nvim): use print() in update.lua to satisfy selene selene's neovim stdlib doesn't expose io.stdout:write/:flush. print() goes to the same place in headless mode and is already allowed. --- dot_config/nvim/lua/config/update.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'dot_config/nvim/lua') diff --git a/dot_config/nvim/lua/config/update.lua b/dot_config/nvim/lua/config/update.lua index 72cb566..e785d43 100644 --- a/dot_config/nvim/lua/config/update.lua +++ b/dot_config/nvim/lua/config/update.lua @@ -6,11 +6,6 @@ local M = {} -local function say(msg) - io.stdout:write(msg .. "\n") - io.stdout:flush() -end - local function orphan_names() return vim .iter(vim.pack.get()) @@ -26,7 +21,7 @@ end function M.run() local orphans = orphan_names() if #orphans > 0 then - say( + print( ("[pack] removing %d orphan(s): %s"):format( #orphans, table.concat(orphans, ", ") @@ -35,10 +30,10 @@ function M.run() vim.pack.del(orphans) end - say("[pack] updating plugins…") + print("[pack] updating plugins…") vim.pack.update(nil, { force = true }) - say("[mason] updating tools…") + print("[mason] updating tools…") vim.cmd("MasonToolsUpdateSync") vim.cmd("qa!") -- cgit v1.3.1