plugins.treesitter.enable

Whether to enable tree-sitter syntax highlighting.

Type: boolean

Default: false

Example: true

Declared by:

plugins.treesitter.package

Plugin to use for nvim-treesitter. If using nixGrammars, it should include a withPlugins function

Type: package

Default: <derivation vimplugin-nvim-treesitter-2024-05-16>

Declared by:

plugins.treesitter.customCaptures

Custom capture group highlighting

Type: attribute set of string

Default: { }

Declared by:

plugins.treesitter.disabledLanguages

A list of languages to disable

Type: list of string

Default: [ ]

Declared by:

plugins.treesitter.ensureInstalled

Either “all” or a list of languages

Type: value “all” (singular enum) or list of string

Default: "all"

Declared by:

plugins.treesitter.folding

Whether to enable tree-sitter based folding.

Type: boolean

Default: false

Example: true

Declared by:

plugins.treesitter.gccPackage

Which package (if any) to be added as the GCC compiler. This is required to build grammars if you are not using nixGrammars. To disable the installation of GCC, set this option to null.

Type: null or package

Default: null

Declared by:

plugins.treesitter.grammarPackages

Grammar packages to install

Type: list of package

Default:

[
  <derivation ada-grammar-0.0.0+rev=ba0894e>
  <derivation agda-grammar-0.0.0+rev=d3dc807>
  <derivation angular-grammar-0.0.0+rev=10f21f3>
  <derivation apex-grammar-0.0.0+rev=c99ad4b>
  <derivation arduino-grammar-0.0.0+rev=babb6d4>
  <derivation asm-grammar-0.0.0+rev=b0306e9>
  <derivation astro-grammar-0.0.0+rev=4be1807>
  <derivation authzed-grammar-0.0.0+rev=1dec7e1>
  <derivation awk-grammar-0.0.0+rev=ba74721>
  <derivation bash-grammar-0.0.0+rev=2fbd860>
  <derivation bass-grammar-0.0.0+rev=28dc705>
  <derivation beancount-grammar-0.0.0+rev=c25f803>
  <derivation bibtex-grammar-0.0.0+rev=ccfd77d>
  <derivation bicep-grammar-0.0.0+rev=0092c7d>
  <derivation bitbake-grammar-0.0.0+rev=a5d04fd>
  <derivation blueprint-grammar-0.0.0+rev=60ba737>
  <derivation c-grammar-0.0.0+rev=82fb86a>
  <derivation c_sharp-grammar-0.0.0+rev=82fa8f0>
  <derivation cairo-grammar-0.0.0+rev=6238f60>
  <derivation capnp-grammar-0.0.0+rev=7b0883c>
  <derivation chatito-grammar-0.0.0+rev=a461f20>
  <derivation clojure-grammar-0.0.0+rev=3a1ace9>
  <derivation cmake-grammar-0.0.0+rev=20ffd6d>
  <derivation comment-grammar-0.0.0+rev=5d8b29f>
  <derivation commonlisp-grammar-0.0.0+rev=bf2a65b>
  <derivation cooklang-grammar-0.0.0+rev=4ebe237>
  <derivation corn-grammar-0.0.0+rev=604d73c>
  <derivation cpon-grammar-0.0.0+rev=594289e>
  <derivation cpp-grammar-0.0.0+rev=2369fa9>
  <derivation css-grammar-0.0.0+rev=f6be52c>
  <derivation csv-grammar-0.0.0+rev=7eb7297>
  <derivation cuda-grammar-0.0.0+rev=e7878a9>
  <derivation cue-grammar-0.0.0+rev=8a5f273>
  <derivation d-grammar-0.0.0+rev=750dde9>
  <derivation dart-grammar-0.0.0+rev=ac0bb84>
  <derivation devicetree-grammar-0.0.0+rev=fb07e60>
  <derivation dhall-grammar-0.0.0+rev=affb6ee>
  <derivation diff-grammar-0.0.0+rev=629676f>
  <derivation disassembly-grammar-0.0.0+rev=0229c02>
  <derivation djot-grammar-0.0.0+rev=0e9a836>
  <derivation dockerfile-grammar-0.0.0+rev=087daa2>
  <derivation dot-grammar-0.0.0+rev=9ab8555>
  <derivation doxygen-grammar-0.0.0+rev=4a30eba>
  <derivation dtd-grammar-0.0.0+rev=648183d>
  <derivation earthfile-grammar-0.0.0+rev=cc99a3f>
  <derivation ebnf-grammar-0.0.0+rev=8e635b0>
  <derivation eds-grammar-0.0.0+rev=fde6202>
  <derivation eex-grammar-0.0.0+rev=f742f2f>
  <derivation elixir-grammar-0.0.0+rev=de690fa>
  <derivation elm-grammar-0.0.0+rev=09dbf22>
  <derivation elsa-grammar-0.0.0+rev=0a66b2b>
  <derivation elvish-grammar-0.0.0+rev=5e7210d>
  <derivation embedded_template-grammar-0.0.0+rev=38d5004>
  <derivation erlang-grammar-0.0.0+rev=868306b>
  <derivation facility-grammar-0.0.0+rev=a525796>
  <derivation faust-grammar-0.0.0+rev=f3b9274>
  <derivation fennel-grammar-0.0.0+rev=8ad1770>
  <derivation fidl-grammar-0.0.0+rev=0a8910f>
  <derivation firrtl-grammar-0.0.0+rev=8503d3a>
  <derivation fish-grammar-0.0.0+rev=a78aef9>
  <derivation foam-grammar-0.0.0+rev=04664b4>
  <derivation forth-grammar-0.0.0+rev=9018923>
  <derivation fortran-grammar-0.0.0+rev=f73d473>
  <derivation fsh-grammar-0.0.0+rev=fad2e17>
  <derivation func-grammar-0.0.0+rev=f780ca5>
  <derivation fusion-grammar-0.0.0+rev=19db2f4>
  <derivation gdscript-grammar-0.0.0+rev=1f1e782>
  <derivation gdshader-grammar-0.0.0+rev=ffd9f95>
  <derivation git_config-grammar-0.0.0+rev=9c2a1b7>
  <derivation git_rebase-grammar-0.0.0+rev=d8a4207>
  <derivation gitattributes-grammar-0.0.0+rev=41940e1>
  <derivation gitcommit-grammar-0.0.0+rev=edd817e>
  <derivation gitignore-grammar-0.0.0+rev=f4685bf>
  <derivation gleam-grammar-0.0.0+rev=8432ffe>
  <derivation glimmer-grammar-0.0.0+rev=6b25d26>
  <derivation glsl-grammar-0.0.0+rev=8c9fb41>
  <derivation gn-grammar-0.0.0+rev=bc06955>
  <derivation gnuplot-grammar-0.0.0+rev=3c895f5>
  <derivation go-grammar-0.0.0+rev=7ee8d92>
  <derivation godot_resource-grammar-0.0.0+rev=2ffb90d>
  <derivation gomod-grammar-0.0.0+rev=bbe2fe3>
  <derivation gosum-grammar-0.0.0+rev=e2ac513>
  <derivation gotmpl-grammar-0.0.0+rev=17144a7>
  <derivation gowork-grammar-0.0.0+rev=949a8a4>
  <derivation gpg-grammar-0.0.0+rev=f99323f>
  <derivation graphql-grammar-0.0.0+rev=5e66e96>
  <derivation groovy-grammar-0.0.0+rev=6c5c881>
  <derivation gstlaunch-grammar-0.0.0+rev=549aef2>
  <derivation hack-grammar-0.0.0+rev=fca1e29>
  <derivation hare-grammar-0.0.0+rev=0705249>
  <derivation haskell-grammar-0.0.0+rev=a50070d>
  <derivation haskell_persistent-grammar-0.0.0+rev=577259b>
  <derivation hcl-grammar-0.0.0+rev=e936d3f>
  <derivation heex-grammar-0.0.0+rev=b5ad6e3>
  <derivation helm-grammar-0.0.0+rev=17144a7>
  <derivation hjson-grammar-0.0.0+rev=02fa3b7>
  <derivation hlsl-grammar-0.0.0+rev=feea0ff>
  <derivation hlsplaylist-grammar-0.0.0+rev=64f1902>
  <derivation hocon-grammar-0.0.0+rev=c390f10>
  <derivation hoon-grammar-0.0.0+rev=a24c5a3>
  <derivation html-grammar-0.0.0+rev=e4d834e>
  <derivation htmldjango-grammar-0.0.0+rev=ea71012>
  <derivation http-grammar-0.0.0+rev=8d22f33>
  <derivation hurl-grammar-0.0.0+rev=ad705af>
  <derivation hyprlang-grammar-0.0.0+rev=e5da7d0>
  <derivation idl-grammar-0.0.0+rev=006a526>
  <derivation ini-grammar-0.0.0+rev=bcb84a2>
  <derivation inko-grammar-0.0.0+rev=4cef9aa>
  <derivation ispc-grammar-0.0.0+rev=9b2f9ae>
  <derivation janet_simple-grammar-0.0.0+rev=51271e2>
  <derivation java-grammar-0.0.0+rev=953abfc>
  <derivation javascript-grammar-0.0.0+rev=e88537c>
  <derivation jq-grammar-0.0.0+rev=13990f5>
  <derivation jsdoc-grammar-0.0.0+rev=49fde20>
  <derivation json-grammar-0.0.0+rev=94f5c52>
  <derivation json5-grammar-0.0.0+rev=ab0ba82>
  <derivation jsonc-grammar-0.0.0+rev=02b0165>
  <derivation jsonnet-grammar-0.0.0+rev=d34615f>
  <derivation julia-grammar-0.0.0+rev=acd5ca1>
  <derivation just-grammar-0.0.0+rev=fd814fc>
  <derivation kconfig-grammar-0.0.0+rev=486fea7>
  <derivation kdl-grammar-0.0.0+rev=49fb89a>
  <derivation kotlin-grammar-0.0.0+rev=c9cb850>
  <derivation koto-grammar-0.0.0+rev=919440e>
  <derivation kusto-grammar-0.0.0+rev=8353a12>
  <derivation lalrpop-grammar-0.0.0+rev=854a40e>
  <derivation latex-grammar-0.0.0+rev=cd82eb4>
  <derivation ledger-grammar-0.0.0+rev=8a841fb>
  <derivation leo-grammar-0.0.0+rev=304611b>
  <derivation linkerscript-grammar-0.0.0+rev=f99011a>
  <derivation liquid-grammar-0.0.0+rev=2933698>
  <derivation liquidsoap-grammar-0.0.0+rev=a9b8012>
  <derivation llvm-grammar-0.0.0+rev=1b96e58>
  <derivation lua-grammar-0.0.0+rev=a24dab1>
  <derivation luadoc-grammar-0.0.0+rev=873612a>
  <derivation luap-grammar-0.0.0+rev=31461ae>
  <derivation luau-grammar-0.0.0+rev=5b088fa>
  <derivation m68k-grammar-0.0.0+rev=d097b12>
  <derivation make-grammar-0.0.0+rev=a4b9187>
  <derivation markdown-grammar-0.0.0+rev=7fe453b>
  <derivation markdown_inline-grammar-0.0.0+rev=7fe453b>
  <derivation matlab-grammar-0.0.0+rev=79d8b25>
  <derivation menhir-grammar-0.0.0+rev=be8866a>
  <derivation mermaid-grammar-0.0.0+rev=90ae195>
  <derivation meson-grammar-0.0.0+rev=bd17c82>
  <derivation mlir-grammar-0.0.0+rev=a708e9b>
  <derivation muttrc-grammar-0.0.0+rev=90ef608>
  <derivation nasm-grammar-0.0.0+rev=570f3d7>
  <derivation nickel-grammar-0.0.0+rev=58baf89>
  <derivation nim-grammar-0.0.0+rev=961c279>
  <derivation nim_format_string-grammar-0.0.0+rev=d45f750>
  <derivation ninja-grammar-0.0.0+rev=0a95cfd>
  <derivation nix-grammar-0.0.0+rev=b3cda61>
  <derivation norg-grammar-0.0.0+rev=aa1a1a7>
  <derivation nqc-grammar-0.0.0+rev=14e6da1>
  <derivation objc-grammar-0.0.0+rev=62e61b6>
  <derivation objdump-grammar-0.0.0+rev=28d3b2e>
  <derivation ocaml-grammar-0.0.0+rev=0b12614>
  <derivation ocaml_interface-grammar-0.0.0+rev=0b12614>
  <derivation ocamllex-grammar-0.0.0+rev=4b9898c>
  <derivation odin-grammar-0.0.0+rev=f25b8c5>
  <derivation org-grammar-0.0.0+rev=64cfbc2>
  <derivation pascal-grammar-0.0.0+rev=a9ee969>
  <derivation passwd-grammar-0.0.0+rev=2023939>
  <derivation pem-grammar-0.0.0+rev=217ff2a>
  <derivation perl-grammar-0.0.0+rev=d4ebabd>
  <derivation php-grammar-0.0.0+rev=27afeb0>
  <derivation php_only-grammar-0.0.0+rev=27afeb0>
  <derivation phpdoc-grammar-0.0.0+rev=1d0e255>
  <derivation pioasm-grammar-0.0.0+rev=924aada>
  <derivation po-grammar-0.0.0+rev=bd860a0>
  <derivation pod-grammar-0.0.0+rev=39da859>
  <derivation poe_filter-grammar-0.0.0+rev=592476d>
  <derivation pony-grammar-0.0.0+rev=73ff874>
  <derivation printf-grammar-0.0.0+rev=0e0acea>
  <derivation prisma-grammar-0.0.0+rev=eca2596>
  <derivation promql-grammar-0.0.0+rev=77625d7>
  <derivation properties-grammar-0.0.0+rev=9d09f5f>
  <derivation proto-grammar-0.0.0+rev=e9f6b43>
  <derivation prql-grammar-0.0.0+rev=09e158c>
  <derivation psv-grammar-0.0.0+rev=7eb7297>
  <derivation pug-grammar-0.0.0+rev=a7ff31a>
  <derivation puppet-grammar-0.0.0+rev=584522f>
  <derivation purescript-grammar-0.0.0+rev=daf9b3e>
  <derivation pymanifest-grammar-0.0.0+rev=e3b82b7>
  <derivation python-grammar-0.0.0+rev=71778c2>
  <derivation ql-grammar-0.0.0+rev=42becd6>
  <derivation qmldir-grammar-0.0.0+rev=6b2b5e4>
  <derivation qmljs-grammar-0.0.0+rev=2c57cac>
  <derivation query-grammar-0.0.0+rev=d25e8d1>
  <derivation r-grammar-0.0.0+rev=3914005>
  <derivation racket-grammar-0.0.0+rev=171f52a>
  <derivation rasi-grammar-0.0.0+rev=43196d9>
  <derivation rbs-grammar-0.0.0+rev=e5e807a>
  <derivation re2c-grammar-0.0.0+rev=47aa19c>
  <derivation readline-grammar-0.0.0+rev=3d4768b>
  <derivation regex-grammar-0.0.0+rev=47007f1>
  <derivation rego-grammar-0.0.0+rev=9ac75e7>
  <derivation requirements-grammar-0.0.0+rev=8666a4d>
  <derivation rnoweb-grammar-0.0.0+rev=1a74dc0>
  <derivation robot-grammar-0.0.0+rev=322e4cc>
  <derivation roc-grammar-0.0.0+rev=7df2c08>
  <derivation ron-grammar-0.0.0+rev=7893855>
  <derivation rst-grammar-0.0.0+rev=5120f6e>
  <derivation ruby-grammar-0.0.0+rev=788a63c>
  <derivation rust-grammar-0.0.0+rev=9c84af0>
  <derivation scala-grammar-0.0.0+rev=b76db43>
  <derivation scfg-grammar-0.0.0+rev=6deae0c>
  <derivation scheme-grammar-0.0.0+rev=8f9dff3>
  <derivation scss-grammar-0.0.0+rev=c478c68>
  <derivation slang-grammar-0.0.0+rev=6858753>
  <derivation slint-grammar-0.0.0+rev=0701312>
  <derivation smali-grammar-0.0.0+rev=fdfa6a1>
  <derivation smithy-grammar-0.0.0+rev=fa898ac>
  <derivation snakemake-grammar-0.0.0+rev=ba1b386>
  <derivation solidity-grammar-0.0.0+rev=b5a23ea>
  <derivation soql-grammar-0.0.0+rev=c99ad4b>
  <derivation sosl-grammar-0.0.0+rev=c99ad4b>
  <derivation sourcepawn-grammar-0.0.0+rev=4c62065>
  <derivation sparql-grammar-0.0.0+rev=05f949d>
  <derivation sql-grammar-0.0.0+rev=25f94f9>
  <derivation squirrel-grammar-0.0.0+rev=0a50d31>
  <derivation ssh_config-grammar-0.0.0+rev=77450e8>
  <derivation starlark-grammar-0.0.0+rev=b31a616>
  <derivation strace-grammar-0.0.0+rev=d819cdd>
  <derivation styled-grammar-0.0.0+rev=c68a457>
  <derivation supercollider-grammar-0.0.0+rev=affa438>
  <derivation surface-grammar-0.0.0+rev=f4586b3>
  <derivation svelte-grammar-0.0.0+rev=2c97326>
  <derivation swift-grammar-0.0.0+rev=c9c669b>
  <derivation sxhkdrc-grammar-0.0.0+rev=440d5f9>
  <derivation systemtap-grammar-0.0.0+rev=1af543a>
  <derivation t32-grammar-0.0.0+rev=6182836>
  <derivation tablegen-grammar-0.0.0+rev=b117088>
  <derivation tact-grammar-0.0.0+rev=034df21>
  <derivation tcl-grammar-0.0.0+rev=8784024>
  <derivation teal-grammar-0.0.0+rev=33482c9>
  <derivation templ-grammar-0.0.0+rev=d631f60>
  <derivation terraform-grammar-0.0.0+rev=e936d3f>
  <derivation textproto-grammar-0.0.0+rev=8dacf02>
  <derivation thrift-grammar-0.0.0+rev=68fd0d8>
  <derivation tiger-grammar-0.0.0+rev=a7f11d9>
  <derivation tlaplus-grammar-0.0.0+rev=ef18145>
  <derivation tmux-grammar-0.0.0+rev=9138ea5>
  <derivation todotxt-grammar-0.0.0+rev=3937c5c>
  <derivation toml-grammar-0.0.0+rev=16a30c8>
  <derivation tsv-grammar-0.0.0+rev=7eb7297>
  <derivation tsx-grammar-0.0.0+rev=4ad3010>
  <derivation turtle-grammar-0.0.0+rev=085437f>
  <derivation twig-grammar-0.0.0+rev=eaf80e6>
  <derivation typescript-grammar-0.0.0+rev=4ad3010>
  <derivation typespec-grammar-0.0.0+rev=fd9a83c>
  <derivation typoscript-grammar-0.0.0+rev=43b221c>
  <derivation typst-grammar-0.0.0+rev=3924cb9>
  <derivation udev-grammar-0.0.0+rev=8f58696>
  <derivation ungrammar-grammar-0.0.0+rev=debd26f>
  <derivation unison-grammar-0.0.0+rev=59d36a0>
  <derivation usd-grammar-0.0.0+rev=4e0875f>
  <derivation uxntal-grammar-0.0.0+rev=ad9b638>
  <derivation v-grammar-0.0.0+rev=7e11a6f>
  <derivation vala-grammar-0.0.0+rev=8f690bf>
  <derivation vento-grammar-0.0.0+rev=3321077>
  <derivation verilog-grammar-0.0.0+rev=075ebfc>
  <derivation vhs-grammar-0.0.0+rev=90028bb>
  <derivation vim-grammar-0.0.0+rev=b448ca6>
  <derivation vimdoc-grammar-0.0.0+rev=b711df7>
  <derivation vue-grammar-0.0.0+rev=22bdfa6>
  <derivation wgsl-grammar-0.0.0+rev=40259f3>
  <derivation wgsl_bevy-grammar-0.0.0+rev=59d5fbd>
  <derivation wing-grammar-0.0.0+rev=bd1d35c>
  <derivation wit-grammar-0.0.0+rev=cab9479>
  <derivation xcompose-grammar-0.0.0+rev=2383cc6>
  <derivation xml-grammar-0.0.0+rev=648183d>
  <derivation yaml-grammar-0.0.0+rev=7b03fee>
  <derivation yang-grammar-0.0.0+rev=2c0e6be>
  <derivation yuck-grammar-0.0.0+rev=e877f6a>
  <derivation zathurarc-grammar-0.0.0+rev=e9e8de0>
  <derivation zig-grammar-0.0.0+rev=0d08703>
]

Declared by:

plugins.treesitter.ignoreInstall

List of parsers to ignore installing (for “all”)

Type: list of string

Default: [ ]

Declared by:

plugins.treesitter.indent

Whether to enable tree-sitter based indentation.

Type: boolean

Default: false

Example: true

Declared by:

plugins.treesitter.languageRegister

This is a wrapping of the vim.treesitter.language.register function. Register specific parsers to one or several filetypes. The keys are the parser names and the values are either one or several filetypes.

Type: attribute set of (string or list of string)

Default: { }

Example:

{
  cpp = "onelab";
  python = [
    "myFiletype"
    "anotherFiletype"
  ];
}

Declared by:

plugins.treesitter.moduleConfig

This is the configuration for extra modules. It should not be used directly

Type: attribute set of anything

Default: { }

Declared by:

plugins.treesitter.nixGrammars

Install grammars with Nix

Type: boolean

Default: true

Declared by:

plugins.treesitter.nixvimInjections

Whether to enable nixvim specific injections, like lua highlighting in extraConfigLua.

Type: boolean

Default: false

Example: true

Declared by:

plugins.treesitter.parserInstallDir

Location of the parsers to be installed by the plugin (only needed when nixGrammars is disabled). This default might not work on your own install, please make sure that $XDG_DATA_HOME is set if you want to use the default. Otherwise, change it to something that will work for you!

Type: null or string

Default: null

Declared by: