Open zw963 opened 2 years ago
I'm not familiar with Dart/Flutter projects but
This is probably doable using yasnippet's condition
mechanism which runs any elisp code.
For example,
# condition: (cl-search "some/category/in/your/project/" buffer-file-name)
I consider the real issue is, i create two folder, dart-mode
, flutter
, but no a emacs mode named flutter
, that cause this issue, though, i point out, it parent mode should be exists dart-mode
.
Following is context.
.yas-parents.el
, content: "dart-mode" (i have another folder, named: dart-mode)test-yas/snippet
In fact, the reason i am not place all snippets in dart-mode folder. is category. if i add sub folder, e.g. like this: 'snippets/dart-mode/flutter/some_snippet', when i want to try this snippet use
test-yas/snippet
, it never work, because it treat flutter as the only candidate, however, the mode i expected to run is dart-mode.Thank you.