Refresh generated neovim config
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
name: (identifier) @variable)
|
||||
|
||||
(field_definition
|
||||
name: (identifier) @property)
|
||||
name: (identifier) @variable.member)
|
||||
|
||||
(negated_field
|
||||
"!" @operator
|
||||
@ -63,6 +63,15 @@
|
||||
((comment) @keyword.directive @nospell
|
||||
(#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$"))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
.
|
||||
(capture)?
|
||||
.
|
||||
(identifier) @property))
|
||||
(#eq? @_name "set"))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
|
||||
@ -12,7 +12,12 @@
|
||||
|
||||
"]" @indent.branch @indent.end
|
||||
|
||||
")" @indent.end
|
||||
[
|
||||
")"
|
||||
"?"
|
||||
"*"
|
||||
"+"
|
||||
] @indent.end
|
||||
|
||||
; Captures always mark the end of a node
|
||||
; Because of that, mark it as indent.end
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
(string) @injection.content))
|
||||
(string
|
||||
(string_content) @injection.content)))
|
||||
(#any-of? @_name "match" "not-match" "any-match" "vim-match" "not-vim-match" "any-vim-match")
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
(string) @injection.content))
|
||||
(string
|
||||
(string_content) @injection.content)))
|
||||
(#any-of? @_name "lua-match" "not-lua-match" "any-lua-match")
|
||||
(#set! injection.language "luap")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
(#set! injection.language "luap"))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
(string) @injection.content
|
||||
(string
|
||||
(string_content) @injection.content)
|
||||
.
|
||||
(string) .))
|
||||
(#any-of? @_name "gsub" "not-gsub")
|
||||
(#set! injection.language "luap")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
(#set! injection.language "luap"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
Reference in New Issue
Block a user