22 lines
797 B
Rust
22 lines
797 B
Rust
use galaxy_core::define_settings_group;
|
|
use settings::{RespectUserSyncSetting, Setting, SupportedPlatforms, SyncToCloud};
|
|
|
|
use crate::banner::BannerState;
|
|
|
|
// This isn't exactly a setting, but rather a record of a
|
|
// user action that should be persisted the same way we would a setting.
|
|
//
|
|
// When a user dismisses the Vim keybindings banner,
|
|
// we want to remember that they did so.
|
|
// That way, we skip displaying it in the future
|
|
// and prevent it from becoming an annoyance.
|
|
define_settings_group!(VimBannerSettings, settings: [
|
|
vim_keybindings_banner_state: VimKeybindingsBannerState {
|
|
type: BannerState,
|
|
default: BannerState::NotDismissed,
|
|
supported_platforms: SupportedPlatforms::ALL,
|
|
sync_to_cloud: SyncToCloud::Never,
|
|
private: true,
|
|
},
|
|
]);
|