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`.
This commit is contained in:
Peter Aronoff
2025-09-22 18:27:44 -04:00
committed by GitHub
parent 09266830bd
commit 7b99e1f0c3

View File

@@ -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,
})
<