dotfiles/.config/nvim/queries/rust/highlights.scm
2022-03-23 12:33:52 +01:00

29 lines
1 KiB
Scheme

;; Keywords
(("async" @keyword) (#set! conceal "ﰦ"))
(("await" @keyword) (#set! conceal ""))
(("dyn" @keyword) (#set! conceal "﫢"))
(("else" @keyword) (#set! conceal ""))
(("enum" @keyword) (#set! conceal ""))
(("fn" @keyword) (#set! conceal "λ"))
(("for" @keyword) (#set! conceal "ﳁ"))
(("if" @keyword) (#set! conceal ""))
(("impl" @keyword) (#set! conceal ""))
(("in" @keyword) (#set! conceal "ﲒ"))
(("let" @keyword) (#set! conceal ""))
(("loop" @keyword) (#set! conceal "ﯩ"))
(("match" @keyword) (#set! conceal ""))
(("pub" @keyword) (#set! conceal ""))
(("return" @keyword) (#set! conceal ""))
(("struct" @keyword) (#set! conceal "📦"))
(("unsafe" @keyword) (#set! conceal "💣"))
(("use" @keyword) (#set! conceal ""))
(("while" @keyword) (#set! conceal "ﯩ"))
;; Common Variables
(((self) @variable.builtin) (#set! conceal ""))
;; Operators
(("&" @operator) (#set! conceal ""))
(("->" @operator) (#set! conceal ""))
(("=>" @operator) (#set! conceal "ﰲ"))
(("?" @operator) (#set! conceal ""))