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)
(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