aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2023-07-04 20:30:31 +0800
committerGitHub <noreply@github.com>2023-07-04 05:30:31 -0700
commitcf5f1492d702f940934b0b40024d1741e4474542 (patch)
tree2444280f368c471efb19f52d9461d1c830fc895c /runtime/doc
parentcebc00603ea39871d37167ece1615d0a5716479d (diff)
downloadrneovim-cf5f1492d702f940934b0b40024d1741e4474542.tar.gz
rneovim-cf5f1492d702f940934b0b40024d1741e4474542.tar.bz2
rneovim-cf5f1492d702f940934b0b40024d1741e4474542.zip
fix(lsp): revert change to buf.clear_references() #24238
Problem: in #24046 the signature of buf.clear_references() changed, which indirectly breaks callers that were passing "ignored" args. Solution: because util.buf_clear_references() already defaulted to "current buffer", the change to buf.clear_references() isn't actually needed, so just revert it.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index c6f395dd15..b21c1d6e9d 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1078,12 +1078,9 @@ add_workspace_folder({workspace_folder})
Add the folder at path to the workspace folders. If {path} is not
provided, the user will be prompted for a path using |input()|.
-clear_references({bufnr}) *vim.lsp.buf.clear_references()*
+clear_references() *vim.lsp.buf.clear_references()*
Removes document highlights from current buffer.
- Parameters: ~
- • {bufnr} integer|nil
-
code_action({options}) *vim.lsp.buf.code_action()*
Selects a code action available at the current cursor position.
@@ -1567,7 +1564,7 @@ buf_clear_references({bufnr}) *vim.lsp.util.buf_clear_references()*
Removes document highlights from a buffer.
Parameters: ~
- • {bufnr} (integer) Buffer id
+ • {bufnr} (integer|nil) Buffer id
*vim.lsp.util.buf_highlight_references()*
buf_highlight_references({bufnr}, {references}, {offset_encoding})