-
Notifications
You must be signed in to change notification settings - Fork 1
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
7e4e46b
commit ce32525
Showing
3 changed files
with
26 additions
and
4 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
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,20 @@ | ||
if vim.fn.has('nvim') == 0 then | ||
print("`:checkhealth` is only supported in Neovim") | ||
return | ||
end | ||
|
||
local M = {} | ||
|
||
local health = vim.health | ||
|
||
M.check = function() | ||
health.start('Check requirements') | ||
local vimver = string.format('%s.%s.%s', vim.version().major, vim.version().minor, vim.version().patch) | ||
if vim.fn.has('nvim-0.9') == 0 then | ||
health.warn('Neovim version is too old', 'Update to Neovim 0.9 or later') | ||
else | ||
health.ok('Neovim version is up to date', vimver) | ||
end | ||
end | ||
|
||
return M |
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