-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neovim becomes very slow when opening an ass file #25950
Comments
Can't reproduce with |
You should never use syntax on in Neovim. |
with vim.cmd [[ syntax off ]] as a workaround, pretty sure I had this, but removed it since it became the default
|
@zeertzjq feel free to enlighten us. |
since the ass format is almost an .ini, I made a quick tree-sitter parser for it using the .ini as a base, since I needed it too. It runs much better https://gitlab.com/duarm1/tree-sitter-ass |
runtime(ssa): improve syntax file performance (vim/vim#14654) fixes: vim/vim#14653 fixes: neovim#25950 vim/vim@f351fd8
Problem
When I set
syntax on
, even if I opened nvim withnvim --clean
, editting an ass file would be very slow.neovim version:
example ass file I used to test:
https://github.com/EugeneLiu/translationCSAPP/blob/master/subtitle/translation/Lecture%2001%20%20course_overview.ass
Steps to reproduce
*copy the ass file from https://github.com/EugeneLiu/translationCSAPP/blob/master/subtitle/translation/Lecture%2001%20%20course_overview.ass
*
nvim --clean Lecture\ 01\ \ course_overview.ass
Expected behavior
Expect neovim not be that slow :)
Neovim version (nvim -v)
NVIM v0.9.4
Vim (not Nvim) behaves the same?
No(vim would not highlight ass file after
syntax on
). Vim version: 8.2Operating system/version
ubuntu 22(wsl)
Terminal name/version
windows terminal 1.18.230526002-preview
$TERM environment variable
screen-256color
Installation
download the release version
The text was updated successfully, but these errors were encountered: