docs(hlgroups): document TSAnnotation, TSCurrentScope, TSDefinition,

TSDefinitionUsage
This commit is contained in:
Stephan Seitz 2020-08-16 15:43:16 +02:00
parent 64df3e1791
commit e558342be5

View file

@ -417,7 +417,12 @@ This is left as an exercise for the reader.
`TSInclude` `TSInclude`
*hl-TSInclude* *hl-TSInclude*
For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` For includes: `#include` in C, `use` or `extern crate` in Rust, or `require`
in Lua in Lua.
`TSAnnotation`
*hl-TSAnnotation*
For C++/Dart attributes, annotations that can be attached to the code to
denote some kind of meta information.
`TSText` `TSText`
*hl-TSText* *hl-TSText*
@ -432,10 +437,11 @@ For text to be represented with strong.
For text to be represented with emphasis. For text to be represented with emphasis.
`TSUnderline` `TSUnderline`
*hl-TSUnderline* *hl-TSUnderline*
For text to be represented with an underline. For text to be represented with an underline.
`TSTitle` `TSTitle`
*hl-TSTitle*
Text that is part of a title. Text that is part of a title.
@ -447,4 +453,25 @@ Literal text.
*hl-TSURI* *hl-TSURI*
Any URI like a link or email. Any URI like a link or email.
==============================================================================
MODULE-HIGHLIGHTS *nvim-treesitter-module-highlights*
Apart from the general purpose highlights in *nvim-treesitter-highlights* ,
some submodules use their own highlight groups to visualize additional
information.
`TSDefinition`
*hl-TSDefinition*
Used by refactor.highlight_definitions to highlight the definition of the
symbol under the cursor.
`TSDefinitionUsage`
*hl-TSDefinitionUsage*
Used by refactor.highlight_definitions to highlight usages of the symbol under
the cursor.
`TSCurrentScope`
*hl-TSCurrentScope*
Used by refactor.highlight_current_scope to highlight the current scope.
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl: