mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
docs(highlights): document LanguageTree.
This commit is contained in:
parent
f7d92f663c
commit
a1de79e93a
2 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ Consistent syntax highlighting.
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = false, -- Use this to enable language injection (this is very unstable)
|
||||
custom_captures = {
|
||||
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
|
||||
["foo.bar"] = "Identifier",
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ Supported options:
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = false, -- Use this to enable language injection
|
||||
custom_captures = {
|
||||
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
|
||||
["foo.bar"] = "Identifier",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue