commit 7b99e1f0c3075a48080990c4d172bc1818a6c532
parent 09266830bdf410c27be49a7993ad60bd9b4bae6c
Author: Peter Aronoff <peter@aronoff.org>
Date: Mon, 22 Sep 2025 18:27:44 -0400
fix: remove typo from buffer-local LSP docs (#35841)
Problem: example code refers to `vim.lsp.buf.document_color`, but there
is no such thing.
Solution: replace `vim.lsp.buf.document_color` with `vim.lsp.document_color`.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
@@ -115,7 +115,7 @@ To remove or override BUFFER-LOCAL defaults, define a |LspAttach| handler: >lua
-- Unmap K
vim.keymap.del('n', 'K', { buffer = args.buf })
-- Disable document colors
- vim.lsp.buf.document_color.enable(false, args.buf)
+ vim.lsp.document_color.enable(false, args.buf)
end,
})
<