Skip to content

Commit 0f31785

Browse files
committed
feat(health): add checks for neovim version
1 parent 7d73539 commit 0f31785

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lua/neotest-java/health.lua

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,27 @@ end
4343

4444
return {
4545
check = function()
46-
health.start("Required plugin depencies:")
46+
health.start("Neovim version check")
47+
if vim.fn.has("nvim-0.10.4") == 1 then
48+
health.ok("Neovim version is OK")
49+
else
50+
health.error("Neovim 0.10.4+ is required")
51+
end
52+
53+
health.start("Required plugin dependencies")
4754
check_plugin("neotest", "nvim-neotest/neotest")
4855
check_plugin("nvim-treesitter", "nvim-treesitter/nvim-treesitter")
4956
check_treesitter()
5057
check_plugin("nio", "nvim-neotest/nvim-nio")
5158
check_plugin("plenary", "nvim-lua/plenary.nvim")
5259
check_plugin("jdtls", "mfussenegger/nvim-jdtls")
60+
61+
health.start("Required plugin dependencies for debugging")
5362
check_plugin("dap", "mfussenegger/nvim-dap")
5463
check_plugin("dapui", "rcarriga/nvim-dap-ui")
5564
check_plugin("nvim-dap-virtual-text", "theHamsta/nvim-dap-virtual-text")
5665

57-
health.start("Required binaries:")
66+
health.start("Required binaries")
5867
check_bin(binaries.java())
5968
check_bin(binaries.javac())
6069
end,

0 commit comments

Comments
 (0)