~toastal/nvim-tree-sitter-unicode-conceal
Showing details for patch 244fb5b36051d08771e31906c294f2139813bc9d.
diff -rN -u old-nvim-tree-sitter-unicode-conceal/after/queries/lua/highlights.scm new-nvim-tree-sitter-unicode-conceal/after/queries/lua/highlights.scm --- old-nvim-tree-sitter-unicode-conceal/after/queries/lua/highlights.scm 1970-01-01 00:00:00.000000000 +0000 +++ new-nvim-tree-sitter-unicode-conceal/after/queries/lua/highlights.scm 2024-11-25 02:04:01.738219627 +0000 @@ -0,0 +1,34 @@ +;; SPDX-FileCopyrightText 2023 toastal <toastal@posteo.net> +;; SPDX-License-Identifier: LGPL-2.1-or-later +; extends + +("function" @keyword.function @conceal (#set! conceal "λ")) +("end" @keyword.function @conceal (#set! conceal "◊")) +("return" @keyword.return @conceal (#set! conceal "⮡")) +(assignment_statement ("=" @operator.assignment @conceal (#set! conceal "←"))) +(field ("=" @punctuation.delimeter @conceal (#set! conceal "≔"))) + +("and" @keyword.operator @conceal (#set! conceal "∧")) +("or" @keyword.operator @conceal (#set! conceal "∨")) +("not" @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 "×")) + +((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) + (#eq? @variable "math") (#eq? @field "ceil")) + (#set! conceal "⌈")) +((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) + (#eq? @variable "math") (#eq? @field "floor")) + (#set! conceal "⌊")) +((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @constant) + (#eq? @variable "math") (#eq? @field "pi")) + (#set! conceal "π")) +((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) + (#eq? @variable "math") (#eq? @field "sqrt")) + (#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-25 02:04:01.738219627 +0000 +++ new-nvim-tree-sitter-unicode-conceal/flake.nix 2024-11-25 02:04:01.738219627 +0000 @@ -62,6 +62,7 @@ start = [ (nvim-treesitter.withPlugins ( plugins: with plugins; [ + lua nickel nix ]