diff --git a/modules/lang/scala/config.el b/modules/lang/scala/config.el index 4a6ddc2c8..11f3f06e3 100644 --- a/modules/lang/scala/config.el +++ b/modules/lang/scala/config.el @@ -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 diff --git a/modules/ui/pretty-code/config.el b/modules/ui/pretty-code/config.el index bcd69562a..f38eea349 100644 --- a/modules/ui/pretty-code/config.el +++ b/modules/ui/pretty-code/config.el @@ -20,6 +20,7 @@ :float "ℝ" :str "𝕊" :bool "đ”č" + :list "𝕃" ;; Flow :not "ïżą" :in "∈" @@ -31,6 +32,9 @@ :return "⟌" :yield "⟻" ;; Other + :union "⋃" + :intersect "∩" + :diff "∖" :tuple "⹂" :pipe "î„”" ;; FIXME: find a non-private char :dot "‱")