1

Refresh generated neovim config

This commit is contained in:
2024-08-15 13:01:03 +02:00
parent 64b51cf53a
commit f5af8e2b28
1836 changed files with 38979 additions and 31094 deletions

View File

@ -1,39 +1,49 @@
; Priorities of the highlight queries are raised, so that they overrule the
; often surrounding and overlapping highlights from the non-gotmpl injections.
;
; Identifiers
[
([
(field)
(field_identifier)
] @variable.member
(#set! priority 110))
(variable) @variable
((variable) @variable
(#set! priority 110))
; Function calls
(function_call
function: (identifier) @function)
function: (identifier) @function
(#set! priority 110))
(method_call
method: (selector_expression
field: (field_identifier) @function))
field: (field_identifier) @function
(#set! priority 110)))
; Builtin functions
(function_call
function: (identifier) @function.builtin
(#set! priority 110)
(#any-of? @function.builtin
"and" "call" "html" "index" "slice" "js" "len" "not" "or" "print" "printf" "println" "urlquery"
"eq" "ne" "lt" "ge" "gt" "ge"))
; Operators
[
([
"|"
":="
] @operator
(#set! priority 110))
; Delimiters
[
([
"."
","
] @punctuation.delimiter
(#set! priority 110))
[
([
"{{"
"}}"
"{{-"
@ -41,6 +51,7 @@
")"
"("
] @punctuation.bracket
(#set! priority 110))
; Actions
(if_action
@ -49,59 +60,73 @@
"else"
"else if"
"end"
] @keyword.conditional)
] @keyword.conditional
(#set! priority 110))
(range_action
[
"range"
"else"
"end"
] @keyword.repeat)
] @keyword.repeat
(#set! priority 110))
(template_action
"template" @function.builtin)
"template" @function.builtin
(#set! priority 110))
(block_action
[
"block"
"end"
] @keyword.directive)
] @keyword.directive
(#set! priority 110))
(define_action
[
"define"
"end"
] @keyword.directive.define)
] @keyword.directive.define
(#set! priority 110))
(with_action
[
"with"
"else"
"end"
] @keyword.conditional)
] @keyword.conditional
(#set! priority 110))
; Literals
[
([
(interpreted_string_literal)
(raw_string_literal)
] @string
(#set! priority 110))
(rune_literal) @string.special.symbol
((rune_literal) @string.special.symbol
(#set! priority 110))
(escape_sequence) @string.escape
((escape_sequence) @string.escape
(#set! priority 110))
[
([
(int_literal)
(imaginary_literal)
] @number
(#set! priority 110))
(float_literal) @number.float
((float_literal) @number.float
(#set! priority 110))
[
([
(true)
(false)
] @boolean
(#set! priority 110))
(nil) @constant.builtin
((nil) @constant.builtin
(#set! priority 110))
(comment) @comment @spell
((comment) @comment @spell
(#set! priority 110))