Closed mathjiajia closed 2 years ago
Oh man, this is not good, sorry for that :/ By the way, do you have nvim_treesitter
installed? I just created a fix that improves things when that plugin is not installed. It is possible that the latest commit fixes this for you.
Oh man, this is not good, sorry for that :/ By the way, do you have
nvim_treesitter
installed? I just created a fix that improves things when that plugin is not installed. It is possible that the latest commit fixes this for you.
Thanks. I have installed nvim-treesitter
.
As a workaround, I used the last commit of cmp-nvim-ultisnips
.
So, still works.
I could reproduce it and know what the problem is: UltiSnips uses tex
, treesitter returns latex
...
Working on a fix.
Hope everything is working again now :)
You are so fast 👍.
Thank you. It was fixed now and worked great with PR #50.
Awesome, I am glad everything is working as expected now!😄
After this new PR #50, my UltiSnips is broken for
tex
file: UltiSnips cannot be triggered.Before:
After:
It does not change even if I add
filetype_source = "treesitter"
in the config ofcmp-nvim-ultisnips
. Could you help me?More information:
Inspired by Gilles Castel, I am using VimTeX and UltiSnips to writing LaTeX documents. Based on UltiSnips
context
function, I add below to mytex
snippets.Clearly, this
math()
function used syntax from VimTeX. So, in order to get "correct" context, I usedadditional_vim_regex_highlighting
forlatex
. Below is (part of) my configuration ofnvim-treesitter
.