mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
missing after queries for helm stuff
This commit is contained in:
parent
37ae2dce7e
commit
6a37bf62c2
3 changed files with 88 additions and 0 deletions
3
.config/nvim/after/ftdetect/gotmpl.vim
Normal file
3
.config/nvim/after/ftdetect/gotmpl.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
augroup filetypedetect
|
||||
autocmd BufNewFile,BufRead *.tmpl, if search('{{.\+}}', 'nw') | setlocal filetype=gotmpl | endif
|
||||
augroup END
|
84
.config/nvim/after/queries/gotmpl/highlights.scm
Normal file
84
.config/nvim/after/queries/gotmpl/highlights.scm
Normal file
|
@ -0,0 +1,84 @@
|
|||
; Identifiers
|
||||
|
||||
[
|
||||
(field)
|
||||
(field_identifier)
|
||||
] @property
|
||||
|
||||
(variable) @variable
|
||||
|
||||
; Function calls
|
||||
|
||||
(function_call
|
||||
function: (identifier) @function)
|
||||
|
||||
(method_call
|
||||
method: (selector_expression
|
||||
field: (field_identifier) @method))
|
||||
|
||||
; Operators
|
||||
|
||||
"|" @operator
|
||||
":=" @operator
|
||||
|
||||
; Builtin functions
|
||||
|
||||
((identifier) @function.builtin
|
||||
(#match? @function.builtin "^(and|call|html|index|slice|js|len|not|or|print|printf|println|urlquery|eq|ne|lt|ge|gt|ge)$"))
|
||||
|
||||
; Delimiters
|
||||
|
||||
"." @punctuation.delimiter
|
||||
"," @punctuation.delimiter
|
||||
|
||||
"{{" @punctuation.bracket
|
||||
"}}" @punctuation.bracket
|
||||
"{{-" @punctuation.bracket
|
||||
"-}}" @punctuation.bracket
|
||||
")" @punctuation.bracket
|
||||
"(" @punctuation.bracket
|
||||
|
||||
; Keywords
|
||||
|
||||
[
|
||||
"else"
|
||||
"else if"
|
||||
"if"
|
||||
"with"
|
||||
] @conditional
|
||||
|
||||
[
|
||||
"range"
|
||||
"end"
|
||||
"template"
|
||||
"define"
|
||||
"block"
|
||||
] @keyword
|
||||
|
||||
; Literals
|
||||
|
||||
[
|
||||
(interpreted_string_literal)
|
||||
(raw_string_literal)
|
||||
(rune_literal)
|
||||
] @string
|
||||
|
||||
(escape_sequence) @string.special
|
||||
|
||||
[
|
||||
(int_literal)
|
||||
(float_literal)
|
||||
(imaginary_literal)
|
||||
] @number
|
||||
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
] @boolean
|
||||
|
||||
[
|
||||
(nil)
|
||||
] @constant.builtin
|
||||
|
||||
(comment) @comment
|
||||
(ERROR) @error
|
1
.config/nvim/after/queries/gotmpl/injections.scm
Normal file
1
.config/nvim/after/queries/gotmpl/injections.scm
Normal file
|
@ -0,0 +1 @@
|
|||
(text) @yaml
|
Loading…
Add table
Add a link
Reference in a new issue