From 0bdd2fe6a755c8bf6582ad2258921751cd14653e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 20 May 2026 13:56:08 +0100 Subject: fix(nvim): wrap vim.pack.update in :PackUpdate user command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nvim_create_user_command passes the callback a table with command metadata (args, bang, ...). Newer neovim's vim.pack.update validates its first arg as a list of names — that metadata table fails the list check with 'names: expected list, got table'. Wrap it. --- dot_config/nvim/lua/config/pack.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_config/nvim/lua/config/pack.lua b/dot_config/nvim/lua/config/pack.lua index 4afb63e..920b4ec 100644 --- a/dot_config/nvim/lua/config/pack.lua +++ b/dot_config/nvim/lua/config/pack.lua @@ -57,7 +57,9 @@ vim.api.nvim_create_user_command("PackClean", clean, { desc = "Remove plugins not declared in vim.pack.add()", }) -vim.api.nvim_create_user_command("PackUpdate", vim.pack.update, { +vim.api.nvim_create_user_command("PackUpdate", function() + vim.pack.update() +end, { desc = "Update all plugins (shows confirm buffer — :w to apply, :q to cancel)", }) -- cgit v1.3.1