fix(healthcheck): update builtins to the new convention #15914

Adjust some builtin healthchecks to use Lua, after #15259
This commit is contained in:
Javier Lopez 2021-10-05 07:05:33 -05:00 committed by GitHub
parent 6d8cafed40
commit 0a7a215aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 12 deletions

View File

@ -1,5 +0,0 @@
function! health#lsp#check() abort
call health#report_start('Checking language server client configuration')
lua require 'vim.lsp.health'.check_health()
endfunction

View File

@ -1,5 +0,0 @@
function! health#treesitter#check() abort
call health#report_start('Checking treesitter configuration')
lua require 'vim.treesitter.health'.check_health()
endfunction

View File

@ -1,7 +1,7 @@
local M = {}
--- Performs a healthcheck for LSP
function M.check_health()
function M.check()
local report_info = vim.fn['health#report_info']
local report_warn = vim.fn['health#report_warn']

View File

@ -9,7 +9,7 @@ function M.list_parsers()
end
--- Performs a healthcheck for treesitter integration
function M.check_health()
function M.check()
local report_info = vim.fn['health#report_info']
local report_ok = vim.fn['health#report_ok']
local report_error = vim.fn['health#report_error']