Update navigator.lua

Simplify logic
pull/173/head
rayx 2 years ago committed by GitHub
parent 5d9f6783f4
commit f4862d4121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -229,11 +229,7 @@ M.setup = function(cfg)
require('navigator.hierarchy')
require('navigator.implementation')
if not cfg.lsp then
cfg.lsp= { diagnostic = _NgConfigValues.lsp.diagnostic }
elseif not cfg.lsp.diagnostic then
cfg.lsp.diagnostic = _NgConfigValues.lsp.diagnostic
end
cfg.lsp = cfg.lsp or _NgConfigValues.lsp
require('navigator.diagnostics').config(cfg.lsp.diagnostic)
if not _NgConfigValues.loaded then
_NgConfigValues.loaded = true

Loading…
Cancel
Save