Skip to content

Commit

Permalink
feat: add minimal support for groovy and gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
WarFox committed Aug 26, 2024
1 parent 1815558 commit 430ab99
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions layers/+lang/groovy/init.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
;; +tools/groovy/init.el --- Groovy Layer -*- lexical-binding: t; -*-

(use-package groovy-mode
:mode "\\.gr\\(oovy\\|adle\\)$"
:general-config
(warmacs/set-local-leader-keys
:keymaps 'groovy-mode-map
"'" #'run-groovy
"s" '(:ignore t :wk "repl")
"sf" #'groovy-send-definition
"sr" #'groovy-send-region))

(use-package groovy-imports
:hook
(groovy-mode . groovy-imports-scan-file)
;; :init
;; (add-hook 'groovy-mode-hook 'groovy-imports-scan-file)
:general-config
(warmacs/set-local-leader-keys
:keymaps 'groovy-mode-map
"ri" #'groovy-imports-add-import-dwim))

(provide '+lang/groovy/init)
10 changes: 10 additions & 0 deletions layers/+tools/gradle/init.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
;; +tools/gradle/init.el --- Gradle Layer -*- lexical-binding: t; -*-

(use-package gradle-mode
:general-config
(warmacs/set-local-leader-keys
:keymaps 'gradle-mode-map
"w" '(:ignore t :wk "workspace")
"wu" #'lsp-java-update-project-configuration))

(provide '+tools/gradle/init)

0 comments on commit 430ab99

Please sign in to comment.