Open sugymt opened 1 year ago
I don't know if this issue can be avoided by changing the implementation, but I hope that if re=0
or re=2
is recommended, it will be documented.
Yes, this has come up a few times. A FAQ entry seems appropriate.
Do we wish to add this to the documentation ? I could help.
@nidhi-singh02 yes, I'd like to add this to the FAQ section in https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt. I would welcome a PR if you want to submit it.
What did you do? (required: The issue will be closed when not provided)
Setup env.
vim main.go
:%s/ a/ a[/
What did you expect to happen?
vim and vim-go continues to work normally.
What happened instead?
"'redrawtime' exceeded, syntax highlighting disabled" is displayed and syntax highlighting is disabled.
This problem could be avoided by either of the following methods:
set re=1
toset re=0
orset re=2
in .vimrcProbably caused by https://github.com/fatih/vim-go/pull/3397
MacOS users may run into this problem because vim defaults to
re=1
.Configuration (MUST fill this out):
vim-go version:
v1.28
vimrc
you used to reproduce:vimrc
```vim set re=1 let g:go_highlight_function_calls = 1 ```Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2023 04:12:26) Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919, 213 Modified by team+vim@tracker.debian.org
Go version (
go version
):go version go1.21.1 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output: