Skip to content

Commit

Permalink
Add configuration meghanada-import-static-enable
Browse files Browse the repository at this point in the history
  • Loading branch information
mopemope committed Apr 24, 2018
1 parent 1833921 commit 7fa1b7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meghanada.el
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ In linux or macOS, it can be \"mvn\"; In Windows, it can be \"mvn.cmd\". "
:group 'meghanada
:type 'function)

(defcustom meghanada-import-static-enable "java.util.Objects,org.junit.Assert"
"Sets import static comletion class."
:group 'meghanada
:type 'string)

;;
;; utility
;;
Expand Down Expand Up @@ -431,6 +436,8 @@ function."
(push (format "-Dmeghanada.maven.local.repository=%s" meghanada-maven-local-repository) options))
(when meghanada-javac-xlint
(push (format "-Dmeghanada.javac.arg=%s" meghanada-javac-xlint) options))
(when meghanada-import-static-enable
(push (format "-Dmeghanada.search.static.method.classes=%s" meghanada-import-static-enable) options))
(when meghanada-gradle-version
(push (format "-Dmeghanada.gradle.version=%s" meghanada-gradle-version) options))
(when meghanada-gradle-prepare-compile-task
Expand Down

0 comments on commit 7fa1b7f

Please sign in to comment.