aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-08-16 15:43:16 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-08-16 21:45:26 +0200
commitd2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12 (patch)
tree3f14f666b2487544981cf31ab8316c3f68746c0d /doc
parentDocs: document `@punctuation.special` (diff)
downloadnvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.tar
nvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.tar.gz
nvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.tar.bz2
nvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.tar.lz
nvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.tar.xz
nvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.tar.zst
nvim-treesitter-d2c5e496c01e4e986e66a4c9f8c2acfa09e9fd12.zip
docs(hlgroups): document TSAnnotation, TSCurrentScope, TSDefinition,
TSDefinitionUsage
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt31
1 files changed, 29 insertions, 2 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 6862a7bff..ed992e2d9 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -421,7 +421,12 @@ This is left as an exercise for the reader.
`TSInclude`
*hl-TSInclude*
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`
*hl-TSText*
@@ -436,10 +441,11 @@ For text to be represented with strong.
For text to be represented with emphasis.
`TSUnderline`
- *hl-TSUnderline*
+ *hl-TSUnderline*
For text to be represented with an underline.
`TSTitle`
+ *hl-TSTitle*
Text that is part of a title.
@@ -451,4 +457,25 @@ Literal text.
*hl-TSURI*
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: