Remove def-menu!; use :localleader keys instead
def-menu was clumsy. We could use a better UI for refactoring commands, but they should be available via localleader keybinds in any case.
This commit is contained in:
parent
d2f9d28577
commit
84abac6b69
7 changed files with 77 additions and 280 deletions
|
@ -7,16 +7,7 @@
|
|||
(set-lookup-handlers! 'lua-mode :documentation 'lua-search-documentation)
|
||||
(set-electric! 'lua-mode :words '("else" "end"))
|
||||
(set-repl-handler! 'lua-mode #'+lua/repl)
|
||||
(set-company-backend! 'lua-mode '(company-lua company-yasnippet))
|
||||
|
||||
(def-menu! +lua/build-menu
|
||||
"Build/compilation commands for `lua-mode' buffers."
|
||||
'(("Run Love app" :exec +lua/run-love-game :when +lua-love-mode))
|
||||
:prompt "Build tasks: ")
|
||||
|
||||
(map! :map lua-mode-map
|
||||
:localleader
|
||||
:n "b" #'+lua/build-menu))
|
||||
(set-company-backend! 'lua-mode '(company-lua company-yasnippet)))
|
||||
|
||||
|
||||
(after! moonscript
|
||||
|
@ -29,5 +20,8 @@
|
|||
|
||||
(def-project-mode! +lua-love-mode
|
||||
:modes (lua-mode markdown-mode json-mode)
|
||||
:files (and "main.lua" "conf.lua"))
|
||||
|
||||
:files (and "main.lua" "conf.lua")
|
||||
:on-load
|
||||
(map! :map +lua-love-mode-map
|
||||
:localleader
|
||||
:n "b" #'+lua/run-love-game))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue