aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/pack.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-12-28 18:32:23 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-12-28 18:39:26 +0200
commit28ba99e026dbed85a19c5dfac39bd8480e82dce5 (patch)
tree011626c857140517221ae3df8b9828bedb640aea /runtime/lua/vim/pack.lua
parentc339b83a4ab99d170776b01c4e4ca4e550f45bba (diff)
downloadrneovim-28ba99e026dbed85a19c5dfac39bd8480e82dce5.tar.gz
rneovim-28ba99e026dbed85a19c5dfac39bd8480e82dce5.tar.bz2
rneovim-28ba99e026dbed85a19c5dfac39bd8480e82dce5.zip
feat(pack)!: suggest "delete" code action only for not active plugins
Problem: Deleting active plugins can lead to a situation when it is reinstalled after restart. Solution: Suggest "delete" code action only for not active plugins. Whether a plugin is not active is visible by a hint in its header.
Diffstat (limited to 'runtime/lua/vim/pack.lua')
-rw-r--r--runtime/lua/vim/pack.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua
index 1ed9fd042f..c49c4ef25c 100644
--- a/runtime/lua/vim/pack.lua
+++ b/runtime/lua/vim/pack.lua
@@ -1161,8 +1161,9 @@ end
--- show more information at cursor. Like details of particular pending
--- change or newer tag.
--- - 'textDocument/codeAction' (`gra` via |lsp-defaults| or |vim.lsp.buf.code_action()|) -
---- show code actions available for "plugin at cursor". Like "delete", "update",
---- or "skip updating".
+--- show code actions available for "plugin at cursor".
+--- Like "delete" (if plugin is not active), "update" or "skip updating"
+--- (if there are pending updates).
---
--- Execute |:write| to confirm update, execute |:quit| to discard the update.
--- - If `true`, make updates right away.