mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -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 {
|
require'nvim-treesitter.configs'.setup {
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
use_languagetree = false, -- Use this to enable language injection (this is very unstable)
|
||||||
custom_captures = {
|
custom_captures = {
|
||||||
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
|
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
|
||||||
["foo.bar"] = "Identifier",
|
["foo.bar"] = "Identifier",
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ Supported options:
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
use_languagetree = false, -- Use this to enable language injection
|
||||||
custom_captures = {
|
custom_captures = {
|
||||||
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
|
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
|
||||||
["foo.bar"] = "Identifier",
|
["foo.bar"] = "Identifier",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue