aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2023-06-30 11:33:28 +0200
committerGitHub <noreply@github.com>2023-06-30 11:33:28 +0200
commit37079fca58f396fd866dc7b7d87a0100c17ee760 (patch)
tree876851052cf0eecbb5e05c4d7ad2abd5ee887e57 /runtime/doc
parentd55d7646c129a9afe1da3a61813bb365d178c421 (diff)
downloadrneovim-37079fca58f396fd866dc7b7d87a0100c17ee760.tar.gz
rneovim-37079fca58f396fd866dc7b7d87a0100c17ee760.tar.bz2
rneovim-37079fca58f396fd866dc7b7d87a0100c17ee760.zip
feat(lsp): move inlay_hint() to vim.lsp (#24130)
Allows to keep more functions hidden and gives a path forward for further inlay_hint related functions - like applying textEdits. See https://github.com/neovim/neovim/pull/23984#pullrequestreview-1486624668
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt14
-rw-r--r--runtime/doc/news.txt2
2 files changed, 8 insertions, 8 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 42600e405c..95cbd211bf 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -810,6 +810,13 @@ get_log_path() *vim.lsp.get_log_path()*
Return: ~
(string) path to log file
+inlay_hint({bufnr}, {enable}) *vim.lsp.inlay_hint()*
+ Enable/disable/toggle inlay hints for a buffer
+
+ Parameters: ~
+ • {bufnr} (integer) Buffer handle, or 0 for current
+ • {enable} (boolean|nil) true/false to enable/disable, nil to toggle
+
omnifunc({findstart}, {base}) *vim.lsp.omnifunc()*
Implements 'omnifunc' compatible LSP completion.
@@ -1227,13 +1234,6 @@ incoming_calls() *vim.lsp.buf.incoming_calls()*
window. If the symbol can resolve to multiple items, the user can pick one
in the |inputlist()|.
-inlay_hint({bufnr}, {enable}) *vim.lsp.buf.inlay_hint()*
- Enable/disable/toggle inlay hints for a buffer
-
- Parameters: ~
- • {bufnr} (integer) Buffer handle, or 0 for current
- • {enable} (boolean|nil) true/false to enable/disable, nil to toggle
-
list_workspace_folders() *vim.lsp.buf.list_workspace_folders()*
List workspace folders.
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 153441b0a5..0a9b926b7f 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -98,7 +98,7 @@ The following new APIs and features were added.
• |nvim_set_keymap()| and |nvim_del_keymap()| now support abbreviations.
-• Implemented LSP inlay hints: |vim.lsp.buf.inlay_hint()|
+• Implemented LSP inlay hints: |vim.lsp.inlay_hint()|
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_inlayHint
==============================================================================