You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently transitioning to Neorg for my daily notes. My work heavily relies on writing math using LaTeX. My setup uses LuaSnip to speed up my math notes (I used this tutorial to setup my snippets). A problem I ran into was using VimTeX'svimtex#syntax#in_mathzone() function to trigger certain snippets only inside of $$ or $$ $$.
I found a workaround here. The workaround involves creating a ~/.config/nvim/after/syntax/norg.vim file and adding the following
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I am currently transitioning to Neorg for my daily notes. My work heavily relies on writing math using LaTeX. My setup uses LuaSnip to speed up my math notes (I used this tutorial to setup my snippets). A problem I ran into was using VimTeX's
vimtex#syntax#in_mathzone()
function to trigger certain snippets only inside of$$
or$$ $$
.I found a workaround here. The workaround involves creating a
~/.config/nvim/after/syntax/norg.vim
file and adding the followingYou should also make sure that you add the following to your treesitter config
Beta Was this translation helpful? Give feedback.
All reactions