mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 04:42:03 +00:00
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:
@@ -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,
|
||||
})
|
||||
<
|
||||
|
||||
Reference in New Issue
Block a user