|
@@ -100,8 +100,10 @@ local function documentHighlight(client, bufnr)
|
|
end
|
|
end
|
|
local lsp_config = {}
|
|
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
|
|
end
|
|
|
|
|
|
function lsp_config.tsserver_on_attach(client, bufnr)
|
|
function lsp_config.tsserver_on_attach(client, bufnr)
|