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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
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)

View file

@ -13,6 +13,7 @@ O.colorscheme = 'lunar'
O.auto_close_tree = 0
O.wrap_lines = false
O.timeoutlen = 100
O.document_highlight = true
-- dashboard
-- O.dashboard.custom_header = {""}