Skip to content

Treesitter Integration

github-actions[bot] edited this page Mar 29, 2025 · 397 revisions

core.integrations.treesitter

Snazzy Treesitter Integration

module-showcase

Overview

Keybinds

This module exposes the following keybinds (see core.keybinds for instructions on mapping them):

  • neorg.treesitter.next.heading - jump to the next heading
  • neorg.treesitter.next.link - jump to the next link
  • neorg.treesitter.previous.heading - jump to the previous heading
  • neorg.treesitter.previous.link - jump to the previous link

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.

      • files
        (list)

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

        "6348056b999f06c2c7f43bb0a5aa7cfde5302712"
      • url
        (string)

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

        true
    • norg_meta
      (table)

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

      • files
        (list)

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

        "a479d1ca05848d0b51dd25bc9f71a17e0108b240"
      • url
        (string)

        "https://github.com/nvim-neorg/tree-sitter-norg-meta"
      • use_makefile
        (boolean)

        true

Dependencies

Required By

Clone this wiki locally