mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +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)
|
||||
|
|
|
@ -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 = {""}
|
||||
|
|
Loading…
Reference in a new issue