Automate settings registration (#42238)

Release Notes:

- N/A

---------

Co-authored-by: Nia <nia@zed.dev>
This commit is contained in:
Mikayla Maki
2025-11-07 22:27:14 +00:00
committed by GitHub
co-authored by Nia
parent 309947aa53
commit 5f8226457e
161 changed files with 196 additions and 599 deletions
@@ -4,15 +4,9 @@
//! disable Vim/Helix modes without having to depend on the `vim` crate in its
//! entirety.
use gpui::App;
use settings::{Settings, SettingsContent};
/// Initializes the `vim_mode_setting` crate.
pub fn init(cx: &mut App) {
VimModeSetting::register(cx);
HelixModeSetting::register(cx);
}
use settings::{RegisterSetting, Settings, SettingsContent};
#[derive(RegisterSetting)]
pub struct VimModeSetting(pub bool);
impl Settings for VimModeSetting {
@@ -21,6 +15,7 @@ impl Settings for VimModeSetting {
}
}
#[derive(RegisterSetting)]
pub struct HelixModeSetting(pub bool);
impl Settings for HelixModeSetting {