From c339b83a4ab99d170776b01c4e4ca4e550f45bba Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Sun, 28 Dec 2025 18:07:32 +0200 Subject: feat(pack): hint in confirmation buffer that plugin is not active Problem: After `vim.pack.update()` it is not clear if plugin is active or not. This can be useful to detect cases when plugin was removed from 'init.lua' but there was no `vim.pack.del()`. Solution: Add ` (not active)` suffix with distinctive highlighting to header of plugins that are not active. It will also be shown in in-process LSP document symbols to have quick reference about which plugins are not active. --- runtime/lua/vim/pack/_lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/pack/_lsp.lua') diff --git a/runtime/lua/vim/pack/_lsp.lua b/runtime/lua/vim/pack/_lsp.lua index 493bf80cd8..2ba087eb4a 100644 --- a/runtime/lua/vim/pack/_lsp.lua +++ b/runtime/lua/vim/pack/_lsp.lua @@ -59,7 +59,7 @@ local get_plug_data_at_lnum = function(bufnr, lnum) if not (from <= lnum and lnum <= to) then return {} end - return { group = group, name = name, from = from, to = to } + return { group = group, name = name:gsub(' %(not active%)$', ''), from = from, to = to } end --- @alias vim.pack.lsp.Position { line: integer, character: integer } -- cgit