Did you check the docs?
Is your feature request related to a problem? Please describe.
neovim/neovim#37795
Neovim 0.12 added an option for vim.json.decode to understand JSONC (JSON with Comments).
We can use this instead of the vendored JSONC parser.
This should go in a major release version since it drops 0.11 support.
Describe the solution you'd like
- Update minimum required Neovim version to 0.12
- Use
vim.json.decode(json, { luanil = true, skip_comments = true }) instead of the vendored Lua parser, it will be much faster this way
Describe alternatives you've considered
Not doing it
Additional context
No response
Did you check the docs?
Is your feature request related to a problem? Please describe.
neovim/neovim#37795
Neovim 0.12 added an option for
vim.json.decodeto understand JSONC (JSON with Comments).We can use this instead of the vendored JSONC parser.
This should go in a major release version since it drops 0.11 support.
Describe the solution you'd like
vim.json.decode(json, { luanil = true, skip_comments = true })instead of the vendored Lua parser, it will be much faster this wayDescribe alternatives you've considered
Not doing it
Additional context
No response