commit 21f2c2b19c40882dc6985f87a2e3527c60e3cfaa
parent f23bd47254e6a13472547ec16050f9669e1dc45f
Author: Maria José Solano <majosolano99@gmail.com>
Date: Sat, 6 Sep 2025 16:12:32 -0700
docs(lsp): tweak `inline_completion.get` code snippet #35657
`replace_keycodes` is true if `expr` is set, and "Accept" is a better
term to describe the keymap.
Diffstat:
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
@@ -2295,11 +2295,7 @@ get({opts}) *vim.lsp.inline_completion.get()*
if not vim.lsp.inline_completion.get() then
return '<Tab>'
end
- end, {
- expr = true,
- replace_keycodes = true,
- desc = 'Get the current inline completion',
- })
+ end, { expr = true, desc = 'Accept the current inline completion' })
<
Parameters: ~
diff --git a/runtime/lua/vim/lsp/inline_completion.lua b/runtime/lua/vim/lsp/inline_completion.lua
@@ -439,11 +439,7 @@ end
--- if not vim.lsp.inline_completion.get() then
--- return '<Tab>'
--- end
---- end, {
---- expr = true,
---- replace_keycodes = true,
---- desc = 'Get the current inline completion',
---- })
+--- end, { expr = true, desc = 'Accept the current inline completion' })
--- ````
---@param opts? vim.lsp.inline_completion.get.Opts
---@return boolean `true` if a completion was applied, else `false`.