branch: elpa/yasnippet-snippets
commit 99b0be85e48d19b7142e5ac16f3aeb8a286eda50
Author: snowman <un...@outlook.com>
Commit: snowman <un...@outlook.com>

    Fix: do NOT overwrite user snippets
    
    When have the same snippet name with same mode, prefer user snippet.
    
    "yas--load-snippet-dirs" loads "(yas-snippet-dirs)" with reverse
    order, which loads "yasnippet-snippets-dir" first with JIT
---
 yasnippet-snippets.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el
index 078ac04878..fbb474c4db 100644
--- a/yasnippet-snippets.el
+++ b/yasnippet-snippets.el
@@ -50,8 +50,7 @@
   ;; value, so that yasnippet will automatically find the directory
   ;; after this package is updated (i.e., moves directory).
   (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t)
-  (yas--load-snippet-dirs)
-  (yas-load-directory yasnippet-snippets-dir t))
+  (yas--load-snippet-dirs))
 
 (defgroup yasnippet-snippets nil
   "Options for yasnippet setups.

Reply via email to