mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Use :
as a trigger character for completion
Note that VSCode asks for completion after *first* `:` as well: use crate: we use hacks to protect against that, and to give completions only after the second `:`.
This commit is contained in:
parent
edeec6a414
commit
e8c50f0915
2 changed files with 24 additions and 2 deletions
|
@ -19,7 +19,7 @@ pub fn server_capabilities() -> ServerCapabilities {
|
|||
hover_provider: Some(true),
|
||||
completion_provider: Some(CompletionOptions {
|
||||
resolve_provider: None,
|
||||
trigger_characters: None,
|
||||
trigger_characters: Some(vec![":".to_string()]),
|
||||
}),
|
||||
signature_help_provider: Some(SignatureHelpOptions {
|
||||
trigger_characters: Some(vec!["(".to_string(), ",".to_string(), ")".to_string()]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue