nvarner / typst-lsp

[Deprecated] An early language server for Typst, plus a VS Code extension
MIT License
1.2k stars 78 forks source link

HyperSnips doesn't work with Typst LSP extension. #488

Open ploliver opened 6 months ago

ploliver commented 6 months ago

Issue

HyperSnips refuses to work when the Typst LSP extension is enabled. I created an all.hsnips file that applies to all files with a simple snippet. When a .typ file is open with the extension activated, this snippet will not activate. Upon disabling the extension, the snippet will work no problem. With the extension enabled, the snippet will work if I change the extension from .typ to .txt. No other extension is enabled.

The content of all.hsnips is, for reference.

snippet test "test" wA
this is a test
endsnippet

Hope this is the place to post this. EDIT: I believe this is related to #410, #375 and #312. My apologies if this is a duplicate.

Myriad-Dreamin commented 6 months ago

The vanilla hypersnips doesn't work, but this fork might be. https://github.com/OrangeX4/OrangeX4-HyperSnips

ploliver commented 6 months ago

I have just tried it and it doesn't even work properly for me (expanding math-context only expressions in the middle of the text when using OrangeX4 latex.hsnips, which breaks my worflow writing LaTeX and breaks other snippets i have for other languages).

Maybe I'm doing something wrong, but in all honesty, as a normal user, I'd expect the original exetension to work with context (scopes) functionality, so I guess this is more of a feature request than a bug report after all.