Set pretty symbols for Dart-mode

This commit is contained in:
M. Yas. Davoodeh 2020-06-12 21:37:14 +04:30 committed by GitHub
parent 9edd4f26f3
commit d7abd0cf82
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