Merge pull request #3366 from MYDavoodeh/patch-1

Set pretty symbols for Dart-mode
This commit is contained in:
Henrik Lissner 2020-06-12 17:01:25 -04:00 committed by GitHub
commit 848ab5c988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,26 @@
:config :config
(when (and (featurep! +flutter) IS-LINUX) (when (and (featurep! +flutter) IS-LINUX)
(when-let (path (doom-glob "/opt/flutter/bin/cache/dart-sdk")) (when-let (path (doom-glob "/opt/flutter/bin/cache/dart-sdk"))
(setq flutter-sdk-path path)))) (setq flutter-sdk-path path)))
(set-pretty-symbols! '(dart-mode)
;; Functional
:def "Function"
:lambda "() =>"
;; Types
:null "null"
:true "true" :false "false"
:int "int" :float "double"
:str "String"
:bool "bool"
:list "List"
;; Flow
:not "!"
:in "in"
:and "&&" :or "||"
:for "for"
:return "return"
;; Other
:yield "yield"))
(use-package! flutter (use-package! flutter