diff options
author | Fredrik Ekre <ekrefredrik@gmail.com> | 2022-05-09 18:08:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 18:08:04 +0200 |
commit | c55867b46d6758c4ff2e55d1bfb4cfc163182a12 (patch) | |
tree | c4e97c8d1e3757bfe13f66d5d3bed768f3b210fb /runtime/doc | |
parent | 8658e8235751f92ce133ec1cd58a7b701340100c (diff) | |
download | rneovim-c55867b46d6758c4ff2e55d1bfb4cfc163182a12.tar.gz rneovim-c55867b46d6758c4ff2e55d1bfb4cfc163182a12.tar.bz2 rneovim-c55867b46d6758c4ff2e55d1bfb4cfc163182a12.zip |
docs(lsp): fix description of `only` in vim.lsp.buf.code_action() (#18492)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index c1726bcb23..647feb6755 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -985,10 +985,10 @@ code_action({options}) *vim.lsp.buf.code_action()* • context (table|nil): Corresponds to `CodeActionContext` of the LSP specification: • diagnostics (table|nil): LSP`Diagnostic[]` . Inferred from the current position if not provided. - • only (string|nil): LSP `CodeActionKind` - used to filter the code actions. Most - language servers support values like - `refactor` or `quickfix`. + • only (table|nil): List of LSP + `CodeActionKind`s used to filter the code + actions. Most language servers support + values like `refactor` or `quickfix`. • filter (function|nil): Predicate function taking an `CodeAction` and returning a @@ -1183,10 +1183,10 @@ range_code_action({context}, {start_pos}, {end_pos}) {context} table|nil `CodeActionContext` of the LSP specification: • diagnostics: (table|nil) LSP`Diagnostic[]` . Inferred from the current position if not provided. - • only: (string|nil) LSP `CodeActionKind` - used to filter the code actions. Most - language servers support values like - `refactor` or `quickfix`. + • only: (table|nil) List of LSP + `CodeActionKind`s used to filter the code + actions. Most language servers support + values like `refactor` or `quickfix`. {start_pos} ({number, number}, optional) mark-indexed position. Defaults to the start of the last visual selection. |