Regenerate nvim config
This commit is contained in:
46
config/neovim/store/nvim-treesitter/queries/odin/indents.scm
Normal file
46
config/neovim/store/nvim-treesitter/queries/odin/indents.scm
Normal file
@ -0,0 +1,46 @@
|
||||
[
|
||||
(block)
|
||||
(enum_declaration)
|
||||
(union_declaration)
|
||||
(bit_field_declaration)
|
||||
(struct_declaration)
|
||||
(struct)
|
||||
(parameters)
|
||||
(tuple_type)
|
||||
(call_expression)
|
||||
(switch_case)
|
||||
] @indent.begin
|
||||
|
||||
; hello(
|
||||
((identifier)
|
||||
.
|
||||
(ERROR
|
||||
"(" @indent.begin))
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
] @indent.branch @indent.end
|
||||
|
||||
; Have to do all closing brackets separately because the one for switch statements shouldn't end.
|
||||
(block
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(enum_declaration
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(union_declaration
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(struct_declaration
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
(struct
|
||||
"}" @indent.branch @indent.end)
|
||||
|
||||
[
|
||||
(comment)
|
||||
(block_comment)
|
||||
(string)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
Reference in New Issue
Block a user