Highlights: default TSError to Normal

This provides a better experience for users
without any extra config.
This commit is contained in:
Santos Gallegos 2020-09-04 12:49:08 -05:00
parent fcdb3eb35d
commit 169defda8f
3 changed files with 1 additions and 13 deletions

View file

@ -458,14 +458,6 @@ If everything is okay, then it might be an actual error.
In both cases, feel free to [open an issue here](https://github.com/nvim-treesitter/nvim-treesitter/issues/new/choose). In both cases, feel free to [open an issue here](https://github.com/nvim-treesitter/nvim-treesitter/issues/new/choose).
### While typing my code is marked as red
You can deactivate highlighting of syntax errors by adding this to your `init.vim` file:
```vim
highlight link TSError Normal
```
## I get `Error detected while processing .../plugin/nvim-treesitter.vim` every time I open Neovim ## I get `Error detected while processing .../plugin/nvim-treesitter.vim` every time I open Neovim
This is probably due to a change in a parser's grammar or its queries. This is probably due to a change in a parser's grammar or its queries.

View file

@ -562,10 +562,6 @@ HIGHLIGHTS *nvim-treesitter-highlights*
*hl-TSError* *hl-TSError*
For syntax/parser errors. For syntax/parser errors.
You can deactivate highlighting of syntax errors by adding this to your
init.vim: >
highlight link TSError Normal
`TSPunctDelimiter` `TSPunctDelimiter`
*hl-TSPunctDelimiter* *hl-TSPunctDelimiter*
For delimiters ie: `.` For delimiters ie: `.`

View file

@ -22,7 +22,7 @@ end
require'nvim-treesitter'.setup() require'nvim-treesitter'.setup()
EOF EOF
highlight default link TSError Error highlight default link TSError Normal
highlight default link TSPunctDelimiter Delimiter highlight default link TSPunctDelimiter Delimiter
highlight default link TSPunctBracket Delimiter highlight default link TSPunctBracket Delimiter