Skip to content

Commit 549fd68

Browse files
fix(json): remove jsonc parser from Treesitter (#1700)
* fix(pack.json): removes jsonc from ensure_installed options Jsonc was removed from treesitter-nvim and is [not supported anymore](nvim-treesitter/nvim-treesitter#1997 (comment)). Trying to install it results on an error: ``` :TSInstallSync jsonc Downloading tree-sitter-jsonc... Creating temporary directory Extracting tree-sitter-jsonc... gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now Error during tarball extraction. Failed to execute the following command: { cmd = "tar", err = "Error during tarball extraction.", info = "Extracting tree-sitter-jsonc...", opts = { args = { "-xvzf", "tree-sitter-jsonc.tar.gz", "-C", "tree-sitter-jsonc-tmp" }, cwd = "/home/guel/.local/share/nvim" } } Press ENTER or type command to continue ``` * docs: remove jsonc --------- Co-authored-by: Uzair Aftab <[email protected]>
1 parent 3c4f762 commit 549fd68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/astrocommunity/pack/json/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
This plugin pack does the following:
44

5-
- Adds `json` and `jsonc` Treesitter parsers
5+
- Adds `json` Treesitter parser
66
- Adds `jsonls` language server

lua/astrocommunity/pack/json/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ return {
2727
optional = true,
2828
opts = function(_, opts)
2929
if opts.ensure_installed ~= "all" then
30-
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "json", "jsonc" })
30+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "json" })
3131
end
3232
end,
3333
},

0 commit comments

Comments
 (0)