Skip to content

Treesitter Integration

github-actions[bot] edited this page Aug 8, 2024 · 393 revisions

core.integrations.treesitter

Snazzy Treesitter Integration

module-showcase

Configuration

  • configure_parsers
    (boolean)

    If true will auto-configure the parsers to use the recommended setup. Set to false only if you know what you're doing, or if the setting messes with your personal configuration.

    true
  • install_parsers
    (boolean)

    If true will automatically install Norg parsers if they are not present.

    true
  • parser_configs
    (table)

    Configurations for each parser as required by nvim-treesitter. If you would like to tweak your parser configs you may do so here.

    • norg
      (table)

      Configuration for the mainline norg parser.

      • branch
        (string)

        "main"
      • files
        (list)

        • (string)
          "src/parser.c"
        • (string)
          "src/scanner.cc"
      • revision
        (string)

        "6348056b999f06c2c7f43bb0a5aa7cfde5302712"
      • url
        (string)

        "https://github.com/nvim-neorg/tree-sitter-norg"
    • norg_meta
      (table)

      Configuration for the metadata parser (used to parse the contents of @document.meta blocks).

      • branch
        (string)

        "main"
      • files
        (list)

        • (string)
          "src/parser.c"
      • revision
        (string)

        "a479d1ca05848d0b51dd25bc9f71a17e0108b240"
      • url
        (string)

        "https://github.com/nvim-neorg/tree-sitter-norg-meta"

Dependencies

Required By

Clone this wiki locally