lang/lua: add flycheck-moonscript package
And only install moonscript package if +moonscript flag is provided.
This commit is contained in:
parent
3b7711420f
commit
e55ed59951
2 changed files with 9 additions and 2 deletions
|
@ -27,7 +27,9 @@
|
|||
moonscript-indent-offset tab-width)
|
||||
(add-hook! 'moonscript-mode-hook
|
||||
#'+lua|moonscript-fix-single-quotes
|
||||
#'+lua|moonscript-fontify-interpolation))
|
||||
#'+lua|moonscript-fontify-interpolation)
|
||||
(when (featurep! :tools flycheck)
|
||||
(require 'flycheck-moonscript nil t)))
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
@ -2,7 +2,12 @@
|
|||
;;; lang/lua/packages.el
|
||||
|
||||
(package! lua-mode)
|
||||
|
||||
(when (featurep! +moonscript)
|
||||
(package! moonscript)
|
||||
(when (featurep! :tools flycheck)
|
||||
(package! flycheck-moonscript
|
||||
:recipe (:host github :repo "hlissner/emacs-flycheck-moonscript"))))
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-lua))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue