aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/completion.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-03-09 23:56:22 +0100
committerJustin M. Keyes <justinkz@gmail.com>2025-03-17 12:31:53 +0100
commitf96606371c13fd10280d737a4e3e2ae9149c2067 (patch)
treef508a3c9ae52ac10d682625201ec16e8d9fd7887 /runtime/lua/vim/lsp/completion.lua
parent041a939eeb21dd8a62c479f12cc9334d3d30a832 (diff)
downloadrneovim-f96606371c13fd10280d737a4e3e2ae9149c2067.tar.gz
rneovim-f96606371c13fd10280d737a4e3e2ae9149c2067.tar.bz2
rneovim-f96606371c13fd10280d737a4e3e2ae9149c2067.zip
docs: misc
Diffstat (limited to 'runtime/lua/vim/lsp/completion.lua')
-rw-r--r--runtime/lua/vim/lsp/completion.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/completion.lua b/runtime/lua/vim/lsp/completion.lua
index dcb7b5fa9b..6aedac8fd9 100644
--- a/runtime/lua/vim/lsp/completion.lua
+++ b/runtime/lua/vim/lsp/completion.lua
@@ -6,6 +6,8 @@
---
--- Example: activate LSP-driven auto-completion:
--- ```lua
+--- -- Works best with completeopt=noselect.
+--- vim.cmd[[set completeopt+=menuone,noselect,popup]]
--- vim.lsp.start({
--- name = 'ts_ls',
--- cmd = …,