mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-15 00:53:40 +01:00
add conceals for zig
This commit is contained in:
parent
1d9a7fb9d5
commit
aeacd9cdef
1 changed files with 32 additions and 0 deletions
32
.config/nvim/queries/zig/highlights.scm
Normal file
32
.config/nvim/queries/zig/highlights.scm
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
;; Keywords
|
||||||
|
(("async" @keyword) (#set! conceal "ﰦ"))
|
||||||
|
(("const" @keyword) (#set! conceal ""))
|
||||||
|
(("else" @keyword) (#set! conceal ""))
|
||||||
|
(("enum" @keyword) (#set! conceal ""))
|
||||||
|
(("fn" @keyword) (#set! conceal "λ"))
|
||||||
|
(("for" @keyword) (#set! conceal "ﳁ"))
|
||||||
|
(("if" @keyword) (#set! conceal ""))
|
||||||
|
(("pub" @keyword) (#set! conceal ""))
|
||||||
|
(("return" @keyword) (#set! conceal ""))
|
||||||
|
(("struct" @keyword) (#set! conceal "📦"))
|
||||||
|
(("switch" @keyword) (#set! conceal ""))
|
||||||
|
(("var" @keyword) (#set! conceal ""))
|
||||||
|
(("while" @keyword) (#set! conceal "ﯩ"))
|
||||||
|
(("try" @keyword) (#set! conceal ""))
|
||||||
|
(("comptime" @keyword) (#set! conceal "ﳼ"))
|
||||||
|
|
||||||
|
;; Functions
|
||||||
|
((BUILTINIDENTIFIER) @include
|
||||||
|
(#any-of? @include "@import" "@cImport")
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
;; Common Variables
|
||||||
|
(((IDENTIFIER) @variable
|
||||||
|
(#eq? @variable "self"))
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
;; Operators
|
||||||
|
(("&" @operator) (#set! conceal ""))
|
||||||
|
(("*" @operator) (#set! conceal ""))
|
||||||
|
(("=>" @operator) (#set! conceal "ﰲ"))
|
||||||
|
(("?" @operator) (#set! conceal ""))
|
Loading…
Reference in a new issue