diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-07-14 01:08:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-13 18:08:57 -0500 |
| commit | 29113e6892a46d4afff41417c0be7122a3b97ae6 (patch) | |
| tree | 48e9a65a931a758845f95a333ce7d06ab7042894 /README.md | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.tar nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.tar.gz nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.tar.bz2 nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.tar.lz nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.tar.xz nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.tar.zst nvim-treesitter-29113e6892a46d4afff41417c0be7122a3b97ae6.zip | |
doc: be more explicit about additional_vim_regex_highlighting (#1561)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -107,6 +107,11 @@ require'nvim-treesitter.configs'.setup { highlight = { enable = true, -- false will disable the whole extension disable = { "c", "rust" }, -- list of language that will be disabled + -- 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. + -- Instead of true it can also be a list of languages + additional_vim_regex_highlighting = false, }, } EOF @@ -225,6 +230,11 @@ require'nvim-treesitter.configs'.setup { -- 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. + -- Instead of true it can also be a list of languages + additional_vim_regex_highlighting = false, }, } EOF |
