yasnippet-snippets icon indicating copy to clipboard operation
yasnippet-snippets copied to clipboard

[Feature Request] Support tree-sitter

Open seagle0128 opened this issue 2 years ago • 2 comments
trafficstars

Hi , Thanks for this great package! I am enjoying it.

In Emacs 29, the native tree-sitter is introduced. Also some new major-modes are introduced, e.g. python-ts-mode, c-ts-mode, go-ts-mode, etc. Now yasnippet doesn't support these major modes. Can you please support?

BTW, ,my workaround is making symlinks for new major modes. e.g. python-ts-mode -> python-mode, or making a new directory and set .yas-parents.

seagle0128 avatar Jan 18 '23 05:01 seagle0128

https://github.com/AndreaCrotti/yasnippet-snippets/pull/455 and https://github.com/AndreaCrotti/yasnippet-snippets/pull/460 are two steps in the right direction.

petergardfjall avatar Feb 06 '23 12:02 petergardfjall

Actually this is an interesting question. Isn't it simpler just to add entries in the .yas-parents. Only that is intended to work.... because if we need to have a directory with same name for every mode,, what's the utility of the .yas-parents then?

Ergus avatar Feb 19 '23 03:02 Ergus