mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 22:59:36 +00:00
docs(lsp): mention default enablement of document colors (#35153)
This commit is contained in:
committed by
GitHub
parent
c789d79966
commit
54bfd0de4f
@@ -286,15 +286,6 @@ end
|
||||
|
||||
--- Enables document highlighting from the given language client in the given buffer.
|
||||
---
|
||||
--- You can enable document highlighting when a client attaches to a buffer as follows:
|
||||
--- ```lua
|
||||
--- vim.api.nvim_create_autocmd('LspAttach', {
|
||||
--- callback = function(args)
|
||||
--- vim.lsp.document_color.enable(true, args.buf)
|
||||
--- end
|
||||
--- })
|
||||
--- ```
|
||||
---
|
||||
--- To "toggle", pass the inverse of `is_enabled()`:
|
||||
---
|
||||
--- ```lua
|
||||
|
||||
Reference in New Issue
Block a user