Skip to content

Commit

Permalink
feat(health): warn when using nvim < 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed May 24, 2024
1 parent 83c714b commit 9b4130b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/yazi/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ return {
check = function()
vim.health.start('yazi')

if vim.fn.has('nvim-0.10.0') ~= 1 then
vim.health.warn(
'yazi.nvim requires Neovim >= 0.10.0. You might have unexpected issues.'
)
end

if vim.fn.executable('yazi') ~= 1 then
vim.health.warn('yazi not found on PATH')
end
Expand Down

0 comments on commit 9b4130b

Please sign in to comment.