aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authortom-anders <13141438+tom-anders@users.noreply.github.com>2024-05-04 10:10:44 +0200
committertom-anders <13141438+tom-anders@users.noreply.github.com>2024-05-07 21:27:21 +0200
commitb0cc85c00504dc5530ab5d6c5fa03f3fa96d5a1a (patch)
tree343f0201c338ed04bb4f7883ae09bda2385518a5 /runtime/doc
parent80d108eeee89c095e0c1226a558a690a708abaa1 (diff)
downloadrneovim-b0cc85c00504dc5530ab5d6c5fa03f3fa96d5a1a.tar.gz
rneovim-b0cc85c00504dc5530ab5d6c5fa03f3fa96d5a1a.tar.bz2
rneovim-b0cc85c00504dc5530ab5d6c5fa03f3fa96d5a1a.zip
docs(lsp): document vim.lsp.ListOpts.loclist
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 8f6913b1c9..6cb01ee3da 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1201,12 +1201,11 @@ Lua module: vim.lsp.buf *lsp-buf*
vim.lsp.buf.references(nil, { on_list = on_list })
<
- If you prefer loclist do something like this: >lua
- local function on_list(options)
- vim.fn.setloclist(0, {}, ' ', options)
- vim.cmd.lopen()
- end
+ If you prefer loclist instead of qflist: >lua
+ vim.lsp.buf.definition({ loclist = true })
+ vim.lsp.buf.references(nil, { loclist = true })
<
+ • {loclist}? (`boolean`)
*vim.lsp.LocationOpts*
Extends: |vim.lsp.ListOpts|