mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	fix(healthcheck): update builtins to the new convention #15914
Adjust some builtin healthchecks to use Lua, after #15259
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
function! health#treesitter#check() abort
 | 
			
		||||
  call health#report_start('Checking treesitter configuration')
 | 
			
		||||
  lua require 'vim.treesitter.health'.check_health()
 | 
			
		||||
endfunction
 | 
			
		||||
 | 
			
		||||
@@ -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']
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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']
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user