nvim: add conceals

This commit is contained in:
LordMZTE 2022-03-22 13:40:28 +01:00
parent a4e4cea9f2
commit 46bc86633d
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 28 additions and 1 deletions

View file

@ -6,7 +6,7 @@ env:
font:
normal:
family: "Iosevka Nerd Font"
family: "Iosevka Term"
bell:
duration: 20

View file

@ -20,6 +20,8 @@ wo.cursorcolumn = true
g.neoterm_default_mod = "tab"
g.neovide_iso_layout = true
o.conceallevel = 2
-- disable garbage providers
g.loaded_python_provider = false
g.loaded_python3_provider = false

View file

@ -0,0 +1,25 @@
;; Keywords
(("async" @keyword) (#set! conceal "ﰦ"))
(("await" @keyword) (#set! conceal ""))
(("dyn" @keyword) (#set! conceal "﫢"))
(("enum" @keyword) (#set! conceal ""))
(("fn" @keyword) (#set! conceal "λ"))
(("for" @keyword) (#set! conceal "ﳁ"))
(("impl" @keyword) (#set! conceal ""))
(("in" @keyword) (#set! conceal "ﲒ"))
(("loop" @keyword) (#set! conceal "ﯩ"))
(("match" @keyword) (#set! conceal ""))
(("pub" @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 ""))