aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/caps.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/src/caps.rs')
-rw-r--r--crates/server/src/caps.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/server/src/caps.rs b/crates/server/src/caps.rs
index 98499bb05..7456aea8a 100644
--- a/crates/server/src/caps.rs
+++ b/crates/server/src/caps.rs
@@ -5,6 +5,7 @@ use languageserver_types::{
5 TextDocumentSyncKind, 5 TextDocumentSyncKind,
6 ExecuteCommandOptions, 6 ExecuteCommandOptions,
7 CompletionOptions, 7 CompletionOptions,
8 DocumentOnTypeFormattingOptions,
8}; 9};
9 10
10pub fn server_capabilities() -> ServerCapabilities { 11pub fn server_capabilities() -> ServerCapabilities {
@@ -35,7 +36,10 @@ pub fn server_capabilities() -> ServerCapabilities {
35 code_lens_provider: None, 36 code_lens_provider: None,
36 document_formatting_provider: None, 37 document_formatting_provider: None,
37 document_range_formatting_provider: None, 38 document_range_formatting_provider: None,
38 document_on_type_formatting_provider: None, 39 document_on_type_formatting_provider: Some(DocumentOnTypeFormattingOptions {
40 first_trigger_character: "=".to_string(),
41 more_trigger_character: None,
42 }),
39 rename_provider: None, 43 rename_provider: None,
40 color_provider: None, 44 color_provider: None,
41 execute_command_provider: Some(ExecuteCommandOptions { 45 execute_command_provider: Some(ExecuteCommandOptions {