refactor(health): keep in mind new way of health check (#63)
This commit is contained in:
parent
10cec9c6b0
commit
65fa148661
2 changed files with 20 additions and 3 deletions
|
|
@ -23,4 +23,11 @@ function health.is_binary_found(bin)
|
|||
return false
|
||||
end
|
||||
|
||||
---@param ft string
|
||||
---@return boolean
|
||||
function health.is_treesitter_parser_available(ft)
|
||||
local ok, parser = pcall(vim.treesitter.get_parser, 0, ft)
|
||||
return ok and parser ~= nil
|
||||
end
|
||||
|
||||
return health
|
||||
Loading…
Add table
Add a link
Reference in a new issue