Skip to content

Commit

Permalink
feat: add checkhealth script
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 3, 2024
1 parent 736e257 commit 488af44
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/blink-cmp-rg/health.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- see :help :checkhealth
-- https://github.com/neovim/neovim/blob/b7779c514632f8c7f791c92203a96d43fffa57c6/runtime/doc/pi_health.txt#L17
return {
check = function()
vim.health.start("blink-cmp-rg")

if vim.fn.executable("rg") ~= 1 then
vim.health.warn("rg (ripgrep) not found on PATH")
end

vim.health.ok("blink-cmp-rg")
end,
}

0 comments on commit 488af44

Please sign in to comment.