mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
Highlights: default TSError to Normal
This provides a better experience for users without any extra config.
This commit is contained in:
parent
97c1e60bd4
commit
1a42056e09
3 changed files with 1 additions and 13 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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: `.`
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ let g:loaded_nvim_treesitter = 1
|
||||||
|
|
||||||
lua require'nvim-treesitter'.setup()
|
lua require'nvim-treesitter'.setup()
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue