Add pretty-symbols-alist support to scala

Closes #2705

Co-authored-by: Ashkan <ashkan.aleali@gmail.com>
This commit is contained in:
Henrik Lissner 2020-06-07 14:21:45 -04:00
parent 912961b46d
commit fa1743eee8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 32 additions and 1 deletions

View file

@ -16,7 +16,34 @@
comment-line-break-function #'+scala-comment-indent-new-line-fn) comment-line-break-function #'+scala-comment-indent-new-line-fn)
(when (featurep! +lsp) (when (featurep! +lsp)
(add-hook 'scala-mode-local-vars-hook #'lsp!))) (add-hook 'scala-mode-local-vars-hook #'lsp!))
(set-pretty-symbols! 'scala-mode
;; Functional
:def "def"
:composition "compose"
;; HKT
:lambda "Lambda"
;; Types
:null "none"
:null "None"
:true "true"
:false "false"
:int "Int"
:str "String"
:float "Float"
:bool "Boolean"
:list "List"
;; Flow
:for "for"
:not "!"
:and "&&"
:or "||"
:yield "yield"
;; Other
:union "union"
:intersect "intersect"
:diff "diff"))
(use-package! sbt-mode (use-package! sbt-mode

View file

@ -20,6 +20,7 @@
:float "" :float ""
:str "𝕊" :str "𝕊"
:bool "𝔹" :bool "𝔹"
:list "𝕃"
;; Flow ;; Flow
:not "" :not ""
:in "" :in ""
@ -31,6 +32,9 @@
:return "" :return ""
:yield "" :yield ""
;; Other ;; Other
:union ""
:intersect ""
:diff ""
:tuple "" :tuple ""
:pipe "" ;; FIXME: find a non-private char :pipe "" ;; FIXME: find a non-private char
:dot "") :dot "")