mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 15:14:04 +00:00
feat(lsp): add triggerKind option for vim.lsp.buf.code_action (#21905)
This commit is contained in:
@@ -304,6 +304,17 @@ local constants = {
|
||||
-- Base kind for an organize imports source action
|
||||
SourceOrganizeImports = 'source.organizeImports',
|
||||
},
|
||||
-- The reason why code actions were requested.
|
||||
---@enum lsp.CodeActionTriggerKind
|
||||
CodeActionTriggerKind = {
|
||||
-- Code actions were explicitly requested by the user or by an extension.
|
||||
Invoked = 1,
|
||||
-- Code actions were requested automatically.
|
||||
--
|
||||
-- This typically happens when current selection in a file changes, but can
|
||||
-- also be triggered when file content changes.
|
||||
Automatic = 2,
|
||||
},
|
||||
}
|
||||
|
||||
for k, v in pairs(constants) do
|
||||
|
||||
Reference in New Issue
Block a user