aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2023-12-22 11:38:02 +0100
committerGitHub <noreply@github.com>2023-12-22 11:38:02 +0100
commitdb0ec84fb46b8235f8651d5aa25eb56a9b117eb5 (patch)
tree0dd458217ee48176386f93cb500fc6ec75203db0 /runtime/doc
parent19aba5916a4064b503894185072fb1c47a41e023 (diff)
downloadrneovim-db0ec84fb46b8235f8651d5aa25eb56a9b117eb5.tar.gz
rneovim-db0ec84fb46b8235f8651d5aa25eb56a9b117eb5.tar.bz2
rneovim-db0ec84fb46b8235f8651d5aa25eb56a9b117eb5.zip
feat(lsp): add type annotations for lsp.util.locations_to_items (#26694)
Problem: luals reported many warnings Solution: Add type annotations
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 65890953e0..436cbd1cee 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1803,13 +1803,13 @@ locations_to_items({locations}, {offset_encoding})
|setloclist()|.
Parameters: ~
- • {locations} (table) list of `Location`s or `LocationLink`s
+ • {locations} lsp.Location[]|lsp.LocationLink[]
• {offset_encoding} (string) offset_encoding for locations
utf-8|utf-16|utf-32 default to first client of
buffer
Return: ~
- (table) list of items
+ vim.lsp.util.LocationItem [] list of items
lookup_section({settings}, {section}) *vim.lsp.util.lookup_section()*
Helper function to return nested values in language server settings