AndreaCrotti / yasnippet-snippets

a collection of yasnippet snippets for many languages
GNU General Public License v3.0
1.15k stars 461 forks source link

[Feature Request] Support tree-sitter #459

Open seagle0128 opened 1 year ago

seagle0128 commented 1 year ago

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.

petergardfjall commented 1 year ago

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

Ergus commented 1 year ago

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?