Skip to content

Commit

Permalink
Add simple healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Max (mcookly) committed Sep 30, 2023
1 parent 3e73539 commit 07d5bc5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lua/bidi/health.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local M = {}

local function check_for_fribidi()
return vim.fn.executable('fribidi')
end

M.check = function()
vim.health.start('bidi.nvim')

if check_for_fribidi() then
vim.health.ok('FriBidi is installed')
else
vim.health.error('Could not find FriBidi CLI')
end
end

return M

0 comments on commit 07d5bc5

Please sign in to comment.