From 21f2c2b19c40882dc6985f87a2e3527c60e3cfaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Sat, 6 Sep 2025 16:12:32 -0700 Subject: [PATCH] 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. --- runtime/doc/lsp.txt | 6 +----- runtime/lua/vim/lsp/inline_completion.lua | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index df0fcedb29..eb1c0ec733 100644 --- 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 '' 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 index cdddeab3cb..07f46f343a 100644 --- 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 '' --- 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`.