mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
Highlights: default TSError to Normal
This provides a better experience for users without any extra config.
This commit is contained in:
committed by
Kiyan Yazdani
parent
97c1e60bd4
commit
1a42056e09
@@ -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).
|
||||
|
||||
### 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
|
||||
|
||||
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*
|
||||
For syntax/parser errors.
|
||||
|
||||
You can deactivate highlighting of syntax errors by adding this to your
|
||||
init.vim: >
|
||||
highlight link TSError Normal
|
||||
|
||||
`TSPunctDelimiter`
|
||||
*hl-TSPunctDelimiter*
|
||||
For delimiters ie: `.`
|
||||
|
||||
@@ -11,7 +11,7 @@ let g:loaded_nvim_treesitter = 1
|
||||
|
||||
lua require'nvim-treesitter'.setup()
|
||||
|
||||
highlight default link TSError Error
|
||||
highlight default link TSError Normal
|
||||
|
||||
highlight default link TSPunctDelimiter Delimiter
|
||||
highlight default link TSPunctBracket Delimiter
|
||||
|
||||
Reference in New Issue
Block a user