lua: add company-lua and moonscript
This commit is contained in:
parent
0e9e20fa7a
commit
14bc80b8d2
2 changed files with 10 additions and 1 deletions
2
Cask
2
Cask
|
@ -186,6 +186,8 @@
|
|||
|
||||
;; Lua -- modules/module-lua.el
|
||||
(depends-on "lua-mode")
|
||||
(depends-on "company-lua")
|
||||
(depends-on "moonscript" :git "https://github.com/k2052/moonscript-mode")
|
||||
|
||||
;; PHP -- modules/module-php.el
|
||||
(depends-on "php-mode")
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
:interpreter "lua"
|
||||
:init (add-hook 'lua-mode-hook 'flycheck-mode)
|
||||
:config
|
||||
(def-company-backend! lua-mode (yasnippet))
|
||||
(def-company-backend! lua-mode (lua yasnippet))
|
||||
(def-electric! lua-mode :words ("else" "end"))
|
||||
(def-repl! lua-mode narf/inf-lua)
|
||||
(sp-with-modes '(lua-mode)
|
||||
|
@ -24,6 +24,13 @@
|
|||
;; inline functions
|
||||
(sp-local-pair "function " " end" :unless '(sp-point-after-bol-p))))
|
||||
|
||||
(use-package company-lua :after lua-mode)
|
||||
|
||||
(use-package moonscript
|
||||
:mode ("\\.moon$" . moonscript-mode)
|
||||
:config
|
||||
(push '(moonscript-mode moonscript-indent-offset) editorconfig-indentation-alist))
|
||||
|
||||
;;
|
||||
(def-project-type! love "♥"
|
||||
:modes (lua-mode markdown-mode json-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue