Add haskell to elisp/eshell-starship.el
This commit is contained in:
@@ -637,6 +637,20 @@ For example, a revert. If there is no current operation, return nil."
|
||||
emacs-version)
|
||||
:doc "The current emacs-version.")
|
||||
|
||||
(eshell-starship-defmodule haskell
|
||||
:extensions '("hs" "cabal" "hs-boot")
|
||||
:files '("stack.yaml")
|
||||
:prefix "via "
|
||||
:icon " "
|
||||
:color "purple"
|
||||
:allow-remote nil
|
||||
:reload-on 'cwd
|
||||
:action (eshell-starship-find-version-function
|
||||
("stack" "ghc" "--" "--version")
|
||||
"version \\([0-9.]+\\)$"
|
||||
"v" (match-string 1))
|
||||
:doc "The current GHC version (as reported by Stack).")
|
||||
|
||||
(eshell-starship-defmodule java
|
||||
:extensions '("java" "class" "gradle" "jar" "clj" "cljc")
|
||||
:files '("pom.xml" "build.gradle.kts" "build.sbt" ".java-version" "deps.edn"
|
||||
|
||||
Reference in New Issue
Block a user