mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 00:56:02 +02:00
Add setting to enable/disable document highlighting (#428)
This commit is contained in:
parent
74ffae99d4
commit
6f8f265e86
2 changed files with 5 additions and 2 deletions
|
@ -100,8 +100,10 @@ local function documentHighlight(client, bufnr)
|
|||
end
|
||||
local lsp_config = {}
|
||||
|
||||
function lsp_config.common_on_attach(client, bufnr)
|
||||
documentHighlight(client, bufnr)
|
||||
if O.document_highlight then
|
||||
function lsp_config.common_on_attach(client, bufnr)
|
||||
documentHighlight(client, bufnr)
|
||||
end
|
||||
end
|
||||
|
||||
function lsp_config.tsserver_on_attach(client, bufnr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue