diff --git a/README.md b/README.md index ed1b524..86dfdbd 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ return { ---This integration also works for emmylua_ls lua_ls_integration = true, ---Set filetype to jsonc when opening a file specified by `config_file_paths`, - ---make sure you have the jsonc tree-sitter parser installed for highlighting + ---make sure you have the json tree-sitter parser installed for highlighting jsonc_filetype = true, ---Enable live reloading of settings when config files change; for servers that support it, ---this is done via the `workspace/didChangeConfiguration` notification, otherwise the diff --git a/doc/codesettings.nvim.txt b/doc/codesettings.nvim.txt index fca5640..c509a2d 100644 --- a/doc/codesettings.nvim.txt +++ b/doc/codesettings.nvim.txt @@ -67,7 +67,7 @@ with to use non-default config. You must call `.setup()` for some features like ---This integration also works for emmylua_ls lua_ls_integration = true, ---Set filetype to jsonc when opening a file specified by `config_file_paths`, - ---make sure you have the jsonc tree-sitter parser installed for highlighting + ---make sure you have the json tree-sitter parser installed for highlighting jsonc_filetype = true, ---Enable live reloading of settings when config files change; for servers that support it, ---this is done via the `workspace/didChangeConfiguration` notification, otherwise the diff --git a/lua/codesettings/health.lua b/lua/codesettings/health.lua index 86e3bd5..fbf7784 100644 --- a/lua/codesettings/health.lua +++ b/lua/codesettings/health.lua @@ -49,10 +49,10 @@ function M.check() ) end - if pcall(vim.treesitter.get_string_parser, '', 'jsonc') then - ok('`jsonc` parser for tree-sitter is installed') + if pcall(vim.treesitter.get_string_parser, '', 'json') then + ok('`json` parser for tree-sitter is installed') else - warn('`jsonc` parser for tree-sitter is not installed. Jsonc highlighting might be broken') + warn('`json` parser for tree-sitter is not installed. Json highlighting might be broken') end if Config.live_reload then