mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Reduce def-package magic; explicitly use :when property
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
:init
|
||||
(add-hook 'lua-mode-hook 'flycheck-mode)
|
||||
:config
|
||||
(set! :company-backend 'lua-mode '(company-lua company-yasnippet))
|
||||
(set! :electric 'lua-mode :words '("else" "end"))
|
||||
(set! :repl 'lua-mode '+lua/repl)
|
||||
|
||||
@ -15,7 +14,10 @@
|
||||
|
||||
|
||||
(def-package! company-lua
|
||||
:after lua-mode)
|
||||
:when (featurep! :completion company)
|
||||
:after lua-mode
|
||||
:config
|
||||
(set! :company-backend 'lua-mode '(company-lua company-yasnippet)))
|
||||
|
||||
|
||||
(def-package! moonscript
|
||||
|
Reference in New Issue
Block a user