1

Update generated neovim config

This commit is contained in:
2024-08-15 14:28:54 +02:00
parent 07409c223d
commit 25cfcf2941
3809 changed files with 351157 additions and 0 deletions

View File

@ -0,0 +1,5 @@
[
(class_decl)
(module_decl)
(interface_decl)
] @fold

View File

@ -0,0 +1,120 @@
; Use directive
(use_clause
[
(type_name)
(simple_type_name)
] @type)
; Buitin constants and Keywords
[
"true"
"false"
] @boolean
"nil" @constant.builtin
[
"use"
"as"
"class"
"module"
"interface"
"type"
"def"
"attr_reader"
"attr_writer"
"attr_accessor"
"end"
"alias"
] @keyword
"def" @keyword.function
; Members of declaration
[
"include"
"extend"
"prepend"
] @function.method
(visibility) @type.qualifier
(comment) @comment @spell
(method_member
(method_name
[
(identifier)
(constant)
(operator)
(setter)
] @method))
[(ivar_name) (cvar_name)] @property
(alias_member (method_name) @function)
(class_name (constant) @type)
(module_name (constant) @type)
(interface_name (interface) @type)
(alias_name (identifier) @type)
(type_variable) @constant
(namespace (constant) @namespace)
(builtin_type) @type.builtin
(const_name (constant) @constant)
(global_name) @property
; Standard Arguments
(parameter (var_name) @parameter)
; Keyword Arguments
(keyword) @parameter
; Self
(self) @variable.builtin
; Literal
(type (symbol_literal) @symbol)
(type (string_literal (escape_sequence) @string.escape))
(type (string_literal) @string)
(type (integer_literal) @number)
; Annotation
(annotation_text) @attribute
; Operators
[
"="
"->"
"<"
"**"
"*"
"&"
"|"
"^"
] @operator
; Punctuation
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
[
","
"."
] @punctuation.delimiter

View File

@ -0,0 +1,24 @@
[
(class_decl)
(module_decl)
(interface_decl)
(parameters)
(tuple_type)
(record_type)
] @indent.begin
[
"end"
")"
"]"
"}"
] @indent.end
[
"end"
")"
"}"
"]"
] @indent.branch
(comment) @indent.auto

View File

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))