Skip to content

Commit 4492155

Browse files
author
jghauser
committed
feat(health): add check for completion
1 parent 82eef18 commit 4492155

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lua/papis/health.lua

+10
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ reports["papis-storage"] = function()
9696
health.error(string.format("The '%s' executable was not found in path.", yq))
9797
end
9898
end
99+
100+
---Creates a report for completion
101+
reports["completion"] = function()
102+
local yaml_parser = vim.api.nvim_get_runtime_file('parser/yaml.so', true)
103+
104+
health.start("Completion")
105+
if not vim.tbl_isempty(yaml_parser) then
106+
health.ok("The treesitter 'yaml' parser was found.")
107+
else
108+
health.error("The treesitter 'yaml' parser was not found.")
99109
end
100110
end
101111

0 commit comments

Comments
 (0)