Skip to content

Commit

Permalink
feat(health): display the current neovim version in the healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Jan 21, 2025
1 parent 34847a4 commit e188eaa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration-tests/cypress/e2e/healthcheck.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe("the healthcheck", () => {
cy.contains(new RegExp("Found yazi version Yazi \\d+?.\\d+?.\\d+?"))
cy.contains(new RegExp("Found ya version Ya \\d+?.\\d+?.\\d+?"))
cy.contains("OK yazi")
cy.contains("Neovim version:")
})
})
})
15 changes: 15 additions & 0 deletions lua/yazi/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ return {
check = function()
vim.health.start("yazi")

do
-- display the current neovim version to help with debugging issues
local v = vim.version()
local version = (
string.format(
"Neovim version: %d.%d.%d, build %s",
v.major,
v.minor,
v.patch,
v.build or "nil"
)
)
vim.health.info("Neovim version: " .. version)
end

local yazi = require("yazi")

local msg = string.format("Running yazi.nvim version %s", yazi.version)
Expand Down

0 comments on commit e188eaa

Please sign in to comment.