-
Notifications
You must be signed in to change notification settings - Fork 391
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
Slow syntax with package fontawesome5 #2580
Comments
I guess the solution here is to keep this package deactivate by default. I'm curious, though: do you use the conceal feature? |
Currently not. However, I occasionally use conceal for equations. I have noticed an issue when enabling the conceal feature with Consider this MWE: \documentclass[margin=1cm]{standalone}
\usepackage{pgfgantt}
\usepackage{fontawesome5}
\newganttchartelement*{checkin}{
checkin/.style={font={\faSignIn*}}
}
\newganttchartelement*{checkout}{
checkout/.style={font={\faSignOut*}}
}
\begin{document}
hello \faImage
\begin{ganttchart}{1}{12}
\gantttitle{2022}{12} \\
\gantttitlelist{1,...,12}{1} \\
\ganttgroup{Group 1}{1}{7} \\
\ganttbar{Task 1}{1}{2} \\
\ganttlinkedbar{Task 2}{3}{7} \ganttnewline
\ganttcheckin{}{4}
\ganttmilestone{Milestone}{7}
\ganttcheckout{}{10}\ganttnewline
\ganttbar{Final Task}{8}{12}
\ganttlink{elem2}{elem3}
\ganttlink{elem3}{elem6}
\end{ganttchart}
\end{document} which shows as Notice in the lines after |
The default vim 9.0 & neovim 0.8.1 setting for Also extending
This would allow users to have concealment for math but not for fontawesome5 symbols. |
Also improves related docs. refer: #2580
I've tried to improve the docs related to the conceal stuff. Please see let g:vimtex_syntax_packages = {'fontawesome5': {'conceal': 0}} |
I instead extended |
Reproduced. Looking into it now. |
I believe it is fixed now. |
Yes, I can confirm this. Though my font does not have a symbol for
I can also confirm that the newly introduced option in As always thank you very much. |
Glad to hear it! :) |
Description
When loading the
fontawesome5
package in a LaTeX file, syntax highlighting becomes very slow (e.g. cursor becomes laggy in normal mode).Use
:syntime on
and view full report with:redir > report.txt
,:syntime report
and:e report.txt
.Workaround in init.lua (neovim):
:syntime report (first 200 of 1889 lines; github has 65536 characters limit)
Download full report:
syntime.txt
Do you use a latexmkrc file?
no
VimtexInfo
Probably related issue
Conceal fontawesome5 (#2506)
The text was updated successfully, but these errors were encountered: