Add auto-yasnippet plugin
This commit is contained in:
parent
5e35ef1ee2
commit
af8214ddd3
2 changed files with 8 additions and 1 deletions
1
Cask
1
Cask
|
@ -78,6 +78,7 @@
|
||||||
|
|
||||||
;; Yasnippet --- core/core-yasnippet.el
|
;; Yasnippet --- core/core-yasnippet.el
|
||||||
(depends-on "yasnippet")
|
(depends-on "yasnippet")
|
||||||
|
(depends-on "auto-yasnippet")
|
||||||
|
|
||||||
;; Flycheck --- core/core-flycheck.el
|
;; Flycheck --- core/core-flycheck.el
|
||||||
(depends-on "flycheck")
|
(depends-on "flycheck")
|
||||||
|
|
|
@ -74,7 +74,13 @@
|
||||||
(after! yasnippet
|
(after! yasnippet
|
||||||
(advice-add 'yas-expand :before 'sp-remove-active-pair-overlay)))
|
(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)
|
(provide 'core-yasnippet)
|
||||||
;;; core-yasnippet.el ends here
|
;;; core-yasnippet.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue