mirror of
https://github.com/neovim/neovim.git
synced 2026-04-24 00:05:36 +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
|
-- Unmap K
|
||||||
vim.keymap.del('n', 'K', { buffer = args.buf })
|
vim.keymap.del('n', 'K', { buffer = args.buf })
|
||||||
-- Disable document colors
|
-- Disable document colors
|
||||||
vim.lsp.buf.document_color.enable(false, args.buf)
|
vim.lsp.document_color.enable(false, args.buf)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
<
|
<
|
||||||
|
|||||||
Reference in New Issue
Block a user