@@ -527,6 +527,7 @@ enum EditorKind {
527
527
Helix ,
528
528
Vim ,
529
529
VsCode ,
530
+ Zed ,
530
531
}
531
532
532
533
impl EditorKind {
@@ -536,6 +537,7 @@ impl EditorKind {
536
537
2. Helix
537
538
3. Vim
538
539
4. VS Code
540
+ 5. Zed
539
541
540
542
Select which editor you would like to set up [default: None]: " ;
541
543
@@ -552,6 +554,7 @@ Select which editor you would like to set up [default: None]: ";
552
554
"2" | "helix" => return Ok ( Some ( EditorKind :: Helix ) ) ,
553
555
"3" | "vim" => return Ok ( Some ( EditorKind :: Vim ) ) ,
554
556
"4" | "vscode" => return Ok ( Some ( EditorKind :: VsCode ) ) ,
557
+ "5" | "zed" => return Ok ( Some ( EditorKind :: Zed ) ) ,
555
558
"" | "none" => return Ok ( None ) ,
556
559
_ => {
557
560
eprintln ! ( "ERROR: unrecognized option '{}'" , input. trim( ) ) ;
@@ -587,6 +590,9 @@ Select which editor you would like to set up [default: None]: ";
587
590
"4eecb58a2168b252077369da446c30ed0e658301efe69691979d1ef0443928f4" ,
588
591
"c394386e6133bbf29ffd32c8af0bb3d4aac354cba9ee051f29612aa9350f8f8d" ,
589
592
] ,
593
+ EditorKind :: Zed => {
594
+ & [ "bbce727c269d1bd0c98afef4d612eb4ce27aea3c3a8968c5f10b31affbc40b6c" ]
595
+ }
590
596
}
591
597
}
592
598
@@ -599,7 +605,7 @@ Select which editor you would like to set up [default: None]: ";
599
605
EditorKind :: Emacs => ".dir-locals.el" ,
600
606
EditorKind :: Helix => "languages.toml" ,
601
607
EditorKind :: Vim => "coc-settings.json" ,
602
- EditorKind :: VsCode => "settings.json" ,
608
+ EditorKind :: VsCode | EditorKind :: Zed => "settings.json" ,
603
609
} )
604
610
}
605
611
@@ -609,6 +615,7 @@ Select which editor you would like to set up [default: None]: ";
609
615
EditorKind :: Helix => PathBuf :: from ( ".helix" ) ,
610
616
EditorKind :: Vim => PathBuf :: from ( ".vim" ) ,
611
617
EditorKind :: VsCode => PathBuf :: from ( ".vscode" ) ,
618
+ EditorKind :: Zed => PathBuf :: from ( ".zed" ) ,
612
619
}
613
620
}
614
621
@@ -619,6 +626,7 @@ Select which editor you would like to set up [default: None]: ";
619
626
EditorKind :: Vim | EditorKind :: VsCode => {
620
627
include_str ! ( "../../../../etc/rust_analyzer_settings.json" )
621
628
}
629
+ EditorKind :: Zed => include_str ! ( "../../../../etc/rust_analyzer_zed.json" ) ,
622
630
}
623
631
}
624
632
0 commit comments