Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/codesettings.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lua/codesettings/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down