mirror of https://github.com/folke/neoconf.nvim
fix(health): remove nvim-treesitter dependency (#44)
This does make the neovim requirement for health 0.9.0, but nvim-treesitter will soon deprecate most of its "plugin" functionality and solely serve as an installer of parsers, and any plugin functionality should rely on the upstream `vim.treesitter` module
This commit is contained in:
parent
f482938d8c
commit
3374276df2
|
|
@ -25,17 +25,10 @@ function M.check()
|
||||||
health_warn(msg:format(...))
|
health_warn(msg:format(...))
|
||||||
end
|
end
|
||||||
|
|
||||||
local _, ts = pcall(require, "nvim-treesitter.parsers")
|
if pcall(vim.treesitter.get_string_parser, "", "jsonc") then
|
||||||
|
ok("**jsonc** parser for tree-sitter is installed")
|
||||||
if ts then
|
|
||||||
ok("**treesitter-nvim** is installed")
|
|
||||||
if ts.has_parser("jsonc") then
|
|
||||||
ok("**TreeSitter jsonc** parser is installed")
|
|
||||||
else
|
else
|
||||||
warn("**TreeSitter jsonc** parser is not installed. Highlighting of jsonc files might be broken")
|
warn("**jsonc** parser for tree-sitter is not installed. Jsonc highlighting might be broken")
|
||||||
end
|
|
||||||
else
|
|
||||||
warn("**treesitter-nvim** not installed. Highlighting of jsonc files might be broken")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if pcall(require, "neodev") then
|
if pcall(require, "neodev") then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue