Add auto-yasnippet plugin

This commit is contained in:
Henrik Lissner 2016-02-26 17:59:14 -05:00
parent 5e35ef1ee2
commit af8214ddd3
2 changed files with 8 additions and 1 deletions

1
Cask
View file

@ -78,6 +78,7 @@
;; Yasnippet --- core/core-yasnippet.el
(depends-on "yasnippet")
(depends-on "auto-yasnippet")
;; Flycheck --- core/core-flycheck.el
(depends-on "flycheck")

View file

@ -74,7 +74,13 @@
(after! yasnippet
(advice-add 'yas-expand :before 'sp-remove-active-pair-overlay)))
;; TODO: Add auto-yasnippet
(use-package auto-yasnippet
:commands (aya-create aya-expand aya-open-line aya-persist-snippet)
:init
(map! :i "<C-tab>" 'aya-expand
:nv "<C-tab>" 'aya-create)
:config
(setq aya-persist-snippets-dir (concat narf-private-dir "auto-snippets/")))
(provide 'core-yasnippet)
;;; core-yasnippet.el ends here