aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/nvim
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:09 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:09 +0100
commit757569a9eb007da2d23e518f4120374881bf1d90 (patch)
treeea801665a78731ee5471ed0c95e760f1837f3a70 /dot_config/nvim
parenteffc568d9676e061f58d45df2d5c5634ef0f760e (diff)
downloaddotfiles-757569a9eb007da2d23e518f4120374881bf1d90.tar.gz
dotfiles-757569a9eb007da2d23e518f4120374881bf1d90.tar.bz2
dotfiles-757569a9eb007da2d23e518f4120374881bf1d90.zip
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.
Diffstat (limited to 'dot_config/nvim')
-rw-r--r--dot_config/nvim/lua/config/update.lua11
1 files changed, 3 insertions, 8 deletions
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!")