Skip to content

[Feature]: Use Neovim 0.12+ built-in JSONC parser #170

Description

@mrjones2014

Did you check the docs?

  • I have read all 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

  1. Update minimum required Neovim version to 0.12
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions