From aeacd9cdef5b4e1c0d4006c6e3e0683242dc191b Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Mon, 13 Jun 2022 22:37:16 +0200 Subject: [PATCH] add conceals for zig --- .config/nvim/queries/zig/highlights.scm | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .config/nvim/queries/zig/highlights.scm diff --git a/.config/nvim/queries/zig/highlights.scm b/.config/nvim/queries/zig/highlights.scm new file mode 100644 index 0000000..47f1411 --- /dev/null +++ b/.config/nvim/queries/zig/highlights.scm @@ -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 ""))