Add setting to enable/disable document highlighting (#428)

This commit is contained in:
tafryn 2021-05-25 16:08:37 -07:00 committed by GitHub
parent 74ffae99d4
commit 6f8f265e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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)