Skip to content

Commit

Permalink
feat(health): add check for completion
Browse files Browse the repository at this point in the history
  • Loading branch information
jghauser committed Jul 30, 2024
1 parent 82eef18 commit 4492155
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/papis/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ reports["papis-storage"] = function()
health.error(string.format("The '%s' executable was not found in path.", yq))
end
end

---Creates a report for completion
reports["completion"] = function()
local yaml_parser = vim.api.nvim_get_runtime_file('parser/yaml.so', true)

health.start("Completion")
if not vim.tbl_isempty(yaml_parser) then
health.ok("The treesitter 'yaml' parser was found.")
else
health.error("The treesitter 'yaml' parser was not found.")
end
end

Expand Down

0 comments on commit 4492155

Please sign in to comment.