aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-06-02 15:19:01 +0200
committerJustin M. Keyes <justinkz@gmail.com>2026-06-03 12:27:30 +0200
commitcbadc4f164125d665dfed8b4540adc27de3b9446 (patch)
treeaee3e61bae4393b3861e27470a1234590a9f0ffb /test/functional/vimscript/executable_spec.lua
parent5cff3c0b97251d33857e16fb0c12689dbf31e9f3 (diff)
downloadrneovim-cbadc4f164125d665dfed8b4540adc27de3b9446.tar.gz
rneovim-cbadc4f164125d665dfed8b4540adc27de3b9446.tar.bz2
rneovim-cbadc4f164125d665dfed8b4540adc27de3b9446.zip
docs: misc, lsp
Problem: This doc on `vim.lsp.completion.get()`: --- 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| ...makes two wrong claims: 1. "Used by the default LSP omnicompletion provider vim.lsp.omnifunc()" - `_omnifunc` does not call `M.get()`, it calls the internal `trigger()` directly. 2. "thus |i_CTRL-X_CTRL-O| invokes this in LSP-enabled buffers" - The two paths use different client sets: - `M.get()` reads `buf_handles[bufnr].clients` (clients explicitly registered via `vim.lsp.completion.enable(true, ...)`). - `_omnifunc` reads `lsp.get_clients({method='textDocument/completion'})` (every completion client, regardless of `enable()`). Solution: Update docs. Co-authored-by: Koichi Shiraishi <zchee.io@gmail.com> Co-authored-by: y9san9 / Alex Sokol <y9san9@gmail.com> Co-authored-by: adv0r <>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions