diff --git a/README.md b/README.md index ca0719c5b..05df7a1e4 100644 --- a/README.md +++ b/README.md @@ -273,10 +273,6 @@ Consistent syntax highlighting. require'nvim-treesitter.configs'.setup { highlight = { enable = true, - custom_captures = { - -- Highlight the @foo.bar capture group with the "Identifier" highlight group. - ["foo.bar"] = "Identifier", - }, -- Setting this to true will run `:h syntax` and tree-sitter at the same time. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Using this option may slow down your editor, and you may see some duplicate highlights. @@ -286,6 +282,17 @@ require'nvim-treesitter.configs'.setup { } ``` +You can add custom highlight captures with: + +```vim +lua < + lua <