mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
Add indentation queries for golang.
This commit is contained in:
parent
5e6b46e7c5
commit
31d41080ed
@ -24,7 +24,7 @@ It's a terminal-based editor first, but I'd like to explore a custom renderer
|
||||
|
||||
# Installation
|
||||
|
||||
Note: Only the Rust syntax has indentation definitions at the moment.
|
||||
Note: Only Rust and Golang have indentation definitions at the moment.
|
||||
|
||||
We provide packaging for various distributions, but here's a quick method to
|
||||
build from source.
|
||||
|
21
runtime/queries/go/indents.toml
Normal file
21
runtime/queries/go/indents.toml
Normal file
@ -0,0 +1,21 @@
|
||||
indent = [
|
||||
"import_declaration",
|
||||
"const_declaration",
|
||||
"var_declaration",
|
||||
"function_declaration",
|
||||
"method_declaration",
|
||||
"composite_literal",
|
||||
"func_literal",
|
||||
"literal_value",
|
||||
"expression_case",
|
||||
"default_case",
|
||||
"argument_list",
|
||||
"block"
|
||||
]
|
||||
|
||||
outdent = [
|
||||
"case",
|
||||
"}",
|
||||
"]",
|
||||
")"
|
||||
]
|
Loading…
Reference in New Issue
Block a user