aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/pack/_lsp.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-12-28 18:07:32 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-12-28 18:39:26 +0200
commitc339b83a4ab99d170776b01c4e4ca4e550f45bba (patch)
tree0318ee32fd6a248e143e21cb2165b442efbad6ef /runtime/lua/vim/pack/_lsp.lua
parentf5707a9c42a6f0efd0d7abaa1e5caf62eab21aea (diff)
downloadrneovim-c339b83a4ab99d170776b01c4e4ca4e550f45bba.tar.gz
rneovim-c339b83a4ab99d170776b01c4e4ca4e550f45bba.tar.bz2
rneovim-c339b83a4ab99d170776b01c4e4ca4e550f45bba.zip
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.
Diffstat (limited to 'runtime/lua/vim/pack/_lsp.lua')
-rw-r--r--runtime/lua/vim/pack/_lsp.lua2
1 files changed, 1 insertions, 1 deletions
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 }