diff --git a/autoload/health/diagnosticls_configs.vim b/autoload/health/diagnosticls_configs.vim new file mode 100644 index 0000000..fee3507 --- /dev/null +++ b/autoload/health/diagnosticls_configs.vim @@ -0,0 +1,17 @@ +if has('nvim') && has('nvim-0.5') + function! s:has_issues() abort + let l:dls_issues = luaeval('_G.diagnosticls_healthcheck') + return !empty(l:dls_issues) + endfunction + + function! health#diagnosticls_configs#check() abort + if s:has_issues() + let l:dls_issues = luaeval('_G.diagnosticls_healthcheck') + for l:issue in l:dls_issues + call health#report_error(issue) + endfor + else + call health#report_ok('All checks passed') + endif + endfunction +endif