Regenerate nvim config
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
; Surface folds similar to HTML and includes blocks
|
||||
[
|
||||
(tag)
|
||||
(component)
|
||||
(block)
|
||||
] @fold
|
||||
@ -0,0 +1,44 @@
|
||||
; Surface text is not highlighted
|
||||
(text) @none
|
||||
|
||||
; Surface has two types of comments, both are highlighted as such
|
||||
(comment) @comment @spell
|
||||
|
||||
; Surface attributes are highlighted as HTML attributes
|
||||
(attribute_name) @tag.attribute
|
||||
|
||||
; Attributes are highlighted as strings
|
||||
(quoted_attribute_value) @string
|
||||
|
||||
; Surface blocks are highlighted as keywords
|
||||
[
|
||||
(start_block)
|
||||
(end_block)
|
||||
(subblock)
|
||||
] @keyword
|
||||
|
||||
; Surface supports HTML tags and are highlighted as such
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
"</"
|
||||
"/>"
|
||||
"{"
|
||||
"}"
|
||||
"<!--"
|
||||
"-->"
|
||||
"{!--"
|
||||
"--}"
|
||||
] @tag.delimiter
|
||||
|
||||
; Surface tags are highlighted as HTML
|
||||
(tag_name) @tag
|
||||
|
||||
; Surface components are highlighted as types (Elixir modules)
|
||||
(component_name) @type
|
||||
|
||||
; Surface directives are highlighted as keywords
|
||||
(directive_name) @keyword
|
||||
|
||||
; Surface operators
|
||||
"=" @operator
|
||||
@ -0,0 +1,14 @@
|
||||
; Surface indents like HTML, with the addition of blocks
|
||||
[
|
||||
(component)
|
||||
(tag)
|
||||
(block)
|
||||
] @indent.begin
|
||||
|
||||
; Dedent at the end of each tag, as well as a subblock
|
||||
[
|
||||
(end_tag)
|
||||
(end_component)
|
||||
(end_block)
|
||||
(subblock)
|
||||
] @indent.branch
|
||||
@ -0,0 +1,10 @@
|
||||
; Surface expressions and components are Elixir code
|
||||
([
|
||||
(expression_value)
|
||||
(component_name)
|
||||
] @injection.content
|
||||
(#set! injection.language "elixir"))
|
||||
|
||||
; Surface comments are nvim-treesitter comments
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Reference in New Issue
Block a user