Merge #40088 from justinmk/doc2

docs: misc, lsp
This commit is contained in:
Justin M. Keyes
2026-06-03 16:57:13 -04:00
committed by GitHub
10 changed files with 34 additions and 64 deletions

View File

@@ -5538,8 +5538,8 @@ function vim.fn.lispindent(lnum) end
--- @return string
function vim.fn.list2blob(list) end
--- Convert each number in {list} to a character string can
--- concatenate them all. Examples: >vim
--- Converts each codepoint in {list} to a UTF-8 character and
--- returns the concatenated string. Examples: >vim
--- echo list2str([32]) " returns " "
--- echo list2str([65, 66, 67]) " returns "ABC"
--- <The same can be done (slowly) with: >vim
@@ -6721,11 +6721,10 @@ function vim.fn.nextnonblank(lnum) end
--- Lua: Prefer |string.char()|: only works with ASCII.
---
--- Return a string with a single character, which has the number
--- value {expr}. Examples: >vim
--- Gets a UTF-8 string for a single codepoint {expr}.
--- Examples: >vim
--- echo nr2char(64) " returns '\@'
--- echo nr2char(32) " returns ' '
--- <Example for "utf-8": >vim
--- echo nr2char(300) " returns I with bow character
--- <
--- UTF-8 encoding is always used, {utf8} option has no effect,

View File

@@ -1211,7 +1211,11 @@ end
---
--- Examples: |lsp-attach| |lsp-completion|
---
--- Note: the behavior of `autotrigger=true` is controlled by the LSP `triggerCharacters` field. You
--- @note |vim.lsp.omnifunc()| (|i_CTRL-X_CTRL-O|) queries every client that advertises completion,
--- including clients that were disabled by `enable(false)`. To suppress completions for a client,
--- clear its capability on |LspAttach|: `client.server_capabilities.completionProvider = nil`.
---
--- @note Behavior of `autotrigger=true` is controlled by the LSP `triggerCharacters` field. You
--- can override it on LspAttach, see |lsp-autocompletion|.
---
--- @param enable boolean True to enable, false to disable
@@ -1235,9 +1239,7 @@ end
--- Triggers LSP completion once in the current buffer, if LSP completion is enabled
--- (see |lsp-attach| |lsp-completion|).
---
--- Used by the default LSP |omnicompletion| provider |vim.lsp.omnifunc()|, thus |i_CTRL-X_CTRL-O|
--- invokes this in LSP-enabled buffers. Use CTRL-Y to select an item from the completion menu.
--- |complete_CTRL-Y|
--- Use CTRL-Y to select an item from the completion menu. |complete_CTRL-Y|
---
--- To invoke manually with CTRL-space, use this mapping:
--- ```lua