diff options
| author | Yi Ming <ofseed@foxmail.com> | 2025-02-11 17:09:39 +0800 |
|---|---|---|
| committer | Yi Ming <ofseed@foxmail.com> | 2025-02-11 17:09:39 +0800 |
| commit | 67221497762ab5a055451c40a374e03bb620a68a (patch) | |
| tree | 1b9291bfef62a0dacf3c1c4d4e5306a7eae96918 /runtime/doc | |
| parent | f8cbdbb4a817c9e85386c50ddf31460e49038c21 (diff) | |
| download | rneovim-67221497762ab5a055451c40a374e03bb620a68a.tar.gz rneovim-67221497762ab5a055451c40a374e03bb620a68a.tar.bz2 rneovim-67221497762ab5a055451c40a374e03bb620a68a.zip | |
feat(lsp): include `end_col` and `end_lnum` in `vim.lsp.buf.symbols_to_items`
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lsp.txt | 6 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 25ef7f24cc..9e6aec4bf7 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -2380,8 +2380,10 @@ symbols_to_items({symbols}, {bufnr}) *vim.lsp.util.symbols_to_items()* Converts symbols to quickfix list items. Parameters: ~ - • {symbols} (`lsp.DocumentSymbol[]|lsp.SymbolInformation[]`) - • {bufnr} (`integer?`) + • {symbols} (`lsp.DocumentSymbol[]|lsp.SymbolInformation[]`) list of + symbols + • {bufnr} (`integer?`) buffer handle or 0 for current, defaults to + current Return: ~ (`vim.quickfix.entry[]`) See |setqflist()| for the format diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 90a020bb4d..8ab001bf94 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -277,7 +277,8 @@ LSP • `:checkhealth vim.lsp` displays the server version (if available). • Completion side effects (including snippet expansion, execution of commands and application of additional text edits) is now built-in. -• |vim.lsp.util.locations_to_items()| sets `end_col` and `end_lnum` fields. +• |vim.lsp.util.locations_to_items()| and |vim.lsp.util.symbols_to_items()| now + sets `end_col` and `end_lnum` fields. • |vim.lsp.buf.format()| now supports passing a list of ranges via the `range` parameter (this requires support for the `textDocument/rangesFormatting` request). |