I'm trying to move to Neovim from regular Vim and while tinkering with UltiSnips I found out that the synID function always returns 0 for some filetypes in Neovim, while it works fine in Vim. For example, I open the same Lua file in Vim and Neovim, focus the cursor on require then I run:
:echo synID(line("."), col("."), 0) in both of them. Neovim returns 0, while Vim returns 595.
For now it seems that the only filetype where this does not happen is .snippet (for UltiSnips), but still it returns different values.
What is it that could be breaking synID? I'm using this function to detect different environments in code and expand snippets accordingly. Thanks in advance!