fix:`diagnostic` config may be a false (#466)

Co-authored-by: zhaogang <zhaogang@dustess.com>
pull/469/head
Mr.Z 5 months ago committed by GitHub
parent 294d65c935
commit 1423d5d082
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -288,7 +288,7 @@ end
local range_format = 'textDocument/rangeFormatting'
local formatting = 'textDocument/formatting'
M.setups = function()
local update_in_insert = _GO_NVIM_CFG.diagnostic.update_in_insert or false
local update_in_insert = _GO_NVIM_CFG.diagnostic and _GO_NVIM_CFG.diagnostic.update_in_insert or false
local diagTrigger = update_in_insert and 'Edit' or 'Save'
local diagDelay = update_in_insert and '1s' or '250ms'
local setups = {

Loading…
Cancel
Save