~toastal/nvim-tree-sitter-unicode-conceal
Showing details for patch 0c0e55a3488530b068ac34af8d29da3283218614.
diff -rN -u old-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm new-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm --- old-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm 1970-01-01 00:00:00.000000000 +0000 +++ new-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm 2024-11-24 22:52:03.815437831 +0000 @@ -0,0 +1,30 @@ +;; SPDX-FileCopyrightText 2024 toastal <toastal@posteo.net> +;; SPDX-License-Identifier: LGPL-2.1-or-later +; extends + +("fun" @keyword.function @conceal (#set! conceal "λ")) +("end" @keyword.function @conceal (#set! conceal "◊")) +("->" @operator @conceal (#set! conceal "→")) +("<-" @operator @conceal (#set! conceal "←")) +("=>" @operator @conceal (#set! conceal "⇒")) +("<=" @operator @conceal (#set! conceal "⇐")) +("=" @operator @conceal (#set! conceal "≕")) +(":=" @operator @conceal (#set! conceal "≔")) +("?=" @operator @conceal (#set! conceal "≟")) + +("==" @operator @conceal (#set! conceal "=")) +("/=" @operator @conceal (#set! conceal "≠")) +("=:=" @operator @conceal (#set! conceal "≡")) +("=/=" @operator @conceal (#set! conceal "≢")) +("=<" @operator @conceal (#set! conceal "≤")) +(">=" @operator @conceal (#set! conceal "≥")) +("*" @operator @conceal (#set! conceal "×")) +; welp… upstream parser is broken currently +(ERROR ("/" @operator @conceal) !arity (#set! conceal "÷")) +("not" @operator @conceal (#set! conceal "¬")) +("and" @operator @conceal (#set! conceal "∧")) +("or" @operator @conceal (#set! conceal "∨")) +("xor" @operator @conceal (#set! conceal "⊻")) + +(type_sig (expr_args args: (call (atom) @type.definition @conceal (#eq? @type.definition "integer"))) (#set! conceal "ℤ")) +(type_sig (pipe lhs: (atom) @lhs rhs: (atom) @rhs (#any-of? @lhs "true" "false") (#any-of? @rhs "true" "false") (#not-eq? @lhs @rhs)) @boolean @conceal (#set! conceal "𝔹")) diff -rN -u old-nvim-tree-sitter-unicode-conceal/flake.nix new-nvim-tree-sitter-unicode-conceal/flake.nix --- old-nvim-tree-sitter-unicode-conceal/flake.nix 2024-11-24 22:52:03.811437831 +0000 +++ new-nvim-tree-sitter-unicode-conceal/flake.nix 2024-11-24 22:52:03.815437831 +0000 @@ -64,6 +64,7 @@ trouble-nvim (nvim-treesitter.withPlugins ( plugins: with plugins; [ + erlang fish lua nickel