/
githubmirror
/
lapce
Обзор
Документация
Войти
/
githubmirror
/
lapce
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lapce-app/src/config/core.rs
25 строк
887 B
ifengqi
1.fix typo (#3523)
19 сен 2024, 15:20
Не верифицирован
19 сен 2024, 15:20
d88fc89
Код
Авторство
О чём код?
use serde::{Deserialize, Serialize}; use structdesc::FieldNames; #[derive(FieldNames, Debug, Clone, Deserialize, Serialize, Default)] #[serde(rename_all = "kebab-case")] pub struct CoreConfig { #[field_names(desc = "Enable modal editing (Vim like)")] pub modal: bool, #[field_names(desc = "Set the color theme of Lapce")] pub color_theme: String, #[field_names(desc = "Set the icon theme of Lapce")] pub icon_theme: String, #[field_names( desc = "Enable customised titlebar and disable OS native one (Linux, BSD, Windows)" )] pub custom_titlebar: bool, #[field_names( desc = "Only allow double-click to open files in the file explorer" )] pub file_explorer_double_click: bool, #[field_names( desc = "Enable auto-reload for the plugin when its configuration changes." )] pub auto_reload_plugin: bool, }