On type format '(', by adding closing ')' automatically

This commit is contained in:
Kirill Bulatov 2023-08-29 23:41:57 +03:00
parent 074c66882f
commit 0f1cde709a
2 changed files with 222 additions and 17 deletions

View file

@ -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());
}