Implement all but the UI

This commit is contained in:
Mikayla
2023-11-28 15:18:19 -08:00
parent 8faa1f6e58
commit d927c2f497
11 changed files with 468 additions and 428 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use settings::Setting;
use settings::Settings;
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq, Default)]
pub enum BaseKeymap {
@@ -44,7 +44,7 @@ impl BaseKeymap {
}
}
impl Setting for BaseKeymap {
impl Settings for BaseKeymap {
const KEY: Option<&'static str> = Some("base_keymap");
type FileContent = Option<Self>;
@@ -52,7 +52,7 @@ impl Setting for BaseKeymap {
fn load(
default_value: &Self::FileContent,
user_values: &[&Self::FileContent],
_: &gpui::AppContext,
_: &mut gpui::AppContext,
) -> anyhow::Result<Self>
where
Self: Sized,