mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
On type format '(', by adding closing ')' automatically
This commit is contained in:
parent
074c66882f
commit
0f1cde709a
2 changed files with 222 additions and 17 deletions
|
@ -218,7 +218,7 @@ fn code_action_capabilities(client_caps: &ClientCapabilities) -> CodeActionProvi
|
|||
}
|
||||
|
||||
fn more_trigger_character(config: &Config) -> Vec<String> {
|
||||
let mut res = vec![".".to_string(), ">".to_string(), "{".to_string()];
|
||||
let mut res = vec![".".to_string(), ">".to_string(), "{".to_string(), "(".to_string()];
|
||||
if config.snippet_cap() {
|
||||
res.push("<".to_string());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue