forked from niuiic/blink-cmp-rg.nvim
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bd3e46
commit 9b46e4f
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
describe("the healthcheck", () => { | ||
it("does not show any errors when ripgrep is installed", () => { | ||
cy.visit("http://localhost:5173") | ||
cy.startNeovim().then(() => { | ||
// wait until text on the start screen is visible | ||
cy.contains("If you see this text, Neovim is ready!") | ||
|
||
cy.typeIntoTerminal(":checkhealth blink-cmp-rg{enter}") | ||
cy.contains("OK blink-cmp-rg") | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |