mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
feat(pack): add code actions in confirmation buffer
Problem: No way to granularly operate on plugins when inside confirmation buffer. Solution: Implement code actions for in-process LSP that act on "plugin at cursor": - Update (if has updates). - Skip updating (if has updates). - Delete. Activate via default `gra` or `vim.lsp.buf.code_action()`.
This commit is contained in:
@@ -402,6 +402,9 @@ update({names}, {opts}) *vim.pack.update()*
|
||||
• 'textDocument/hover' (`K` via |lsp-defaults| or
|
||||
|vim.lsp.buf.hover()|) - 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".
|
||||
Execute |:write| to confirm update, execute |:quit| to discard the
|
||||
update.
|
||||
• If `true`, make updates right away.
|
||||
|
Reference in New Issue
Block a user