mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-18 16:08:55 +00:00
Rainbow brackets get per-kind switches (round, square, curly, and angle brackets and tags) and a palette length of 2–5 colours; defaults are unchanged. Angle brackets are coloured only inside syntax nodes a language definition names under [rainbow-brackets] (type argument/parameter lists for TypeScript/TSX, Java, Rust and C++; tags for HTML, XML, Vue, Svelte and JSX), so comparisons and shifts stay uncoloured. A kind switched off keeps the other brackets' depths. Colour schemes gain --syn-bracket-4/5; indent guides and sticky lines follow the palette length. Closes #3769 Co-authored-by: bertyhell <1710840+bertyhell@users.noreply.github.com>
31 lines
755 B
TOML
31 lines
755 B
TOML
id = "rust"
|
||
name = "Rust"
|
||
extensions = ["rs"]
|
||
line-comment = "//"
|
||
block-comment = ["/*", "*/"]
|
||
indent = { tab-size = 4, insert-spaces = true }
|
||
ui-mode = "Rust"
|
||
tree-sitter = "rust"
|
||
scratch-template = '''
|
||
fn main() {
|
||
$END$
|
||
}
|
||
'''
|
||
|
||
# Rainbow brackets › angle: editor syntax nodes whose `<` `>` pair up (never comparisons).
|
||
[rainbow-brackets]
|
||
angle = ["TypeArgList", "TypeParamList"]
|
||
|
||
[[language-servers]]
|
||
name = "rust-analyzer"
|
||
command = "rust-analyzer"
|
||
root-markers = ["Cargo.toml", "rust-project.json"]
|
||
install-hint = "rustup component add rust-analyzer"
|
||
|
||
[debugger]
|
||
adapter = "codelldb"
|
||
command = "codelldb"
|
||
args = ["--port", "${port}"]
|
||
transport = "tcp"
|
||
install-hint = "Install CodeLLDB in Settings › Languages & Frameworks › Language Servers"
|