diff options
author | kishii <24446852+zhoudaxia2016@users.noreply.github.com> | 2023-01-21 15:22:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-21 08:22:34 +0100 |
commit | 7ef5e363d360f86c5d8d403e90ed256f4de798ec (patch) | |
tree | f85d53931f830f0b332082d5f27be8df02f0cbe0 /runtime/doc | |
parent | e86d2734a93e159d44df8132dee6b994e5922d18 (diff) | |
download | rneovim-7ef5e363d360f86c5d8d403e90ed256f4de798ec.tar.gz rneovim-7ef5e363d360f86c5d8d403e90ed256f4de798ec.tar.bz2 rneovim-7ef5e363d360f86c5d8d403e90ed256f4de798ec.zip |
feat(lsp): add triggerKind option for vim.lsp.buf.code_action (#21905)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 46cfa60529..9757bc9693 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1022,6 +1022,8 @@ code_action({options}) *vim.lsp.buf.code_action()* • only (table|nil): List of LSP `CodeActionKind`s used to filter the code actions. Most language servers support values like `refactor` or `quickfix`. + • triggerKind (number|nil): The reason why code actions + were requested. • filter: (function|nil) Predicate taking an `CodeAction` and returning a boolean. @@ -1036,6 +1038,7 @@ code_action({options}) *vim.lsp.buf.code_action()* See also: ~ https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction + vim.lsp.protocol.constants.CodeActionTriggerKind completion({context}) *vim.lsp.buf.completion()* Retrieves the completion items at the current cursor position. Can only be |