diff --git a/oni-groovy.el b/oni-groovy.el index b8f5211..57844a8 100644 --- a/oni-groovy.el +++ b/oni-groovy.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.0926.132722 +;; Version: 2023.0505.164419 ;; Package-Requires: (groovy-mode oni-embrace oni-smartparens groovy-imports rainbow-delimiters jenkinsfile-mode) ;; This program is free software; you can redistribute it and/or modify @@ -88,5 +88,13 @@ (with-eval-after-load 'grep (add-to-list 'grep-files-aliases '("groovy" . "*.groovy *.pipeline Jenkinsfile"))) +(setf (alist-get "Functions" groovy-imenu-regexp nil nil #'string=) + (list (rx line-start "def" + (minimal-match (one-or-more whitespace)) + (group alpha (minimal-match (zero-or-more alphanumeric))) + (minimal-match (zero-or-more whitespace)) + "(") + 1)) + (provide 'oni-groovy) ;;; oni-groovy.el ends here