mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 06:45:37 +00:00
feat(lsp): enable document_color by default #35086
This commit is contained in:
committed by
GitHub
parent
628d569a59
commit
d08b265111
@@ -779,6 +779,7 @@ function lsp._set_defaults(client, bufnr)
|
||||
if client:supports_method(ms.textDocument_diagnostic) then
|
||||
lsp.diagnostic._enable(bufnr)
|
||||
end
|
||||
lsp.document_color.enable(true, bufnr)
|
||||
end
|
||||
|
||||
--- @deprecated
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--- @brief This module provides LSP support for highlighting color references in a document.
|
||||
--- Highlighting is enabled by default.
|
||||
|
||||
local api = vim.api
|
||||
local lsp = vim.lsp
|
||||
local util = lsp.util
|
||||
|
||||
Reference in New Issue
Block a user