From 5ad1e003f2681a82d20f36db5e0835968b6baa71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20misaki=20masa?= Date: Tue, 5 May 2026 01:37:17 +0800 Subject: [PATCH] chore: use Tombi for TOML schema validation (#3932) --- yazi-config/preset/keymap-default.toml | 7 ++++--- yazi-config/preset/theme-dark.toml | 2 +- yazi-config/preset/theme-light.toml | 2 +- yazi-config/preset/yazi-default.toml | 5 +++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/yazi-config/preset/keymap-default.toml b/yazi-config/preset/keymap-default.toml index 447cb98e..242e4325 100644 --- a/yazi-config/preset/keymap-default.toml +++ b/yazi-config/preset/keymap-default.toml @@ -1,6 +1,7 @@ -# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. -# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. -"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" +# A TOML linter such as https://github.com/tombi-toml/tombi can use this schema to validate your config. +# If you encounter any problems, please make an issue at https://github.com/yazi-rs/schemas. + +#:schema https://yazi-rs.github.io/schemas/keymap.json [mgr] diff --git a/yazi-config/preset/theme-dark.toml b/yazi-config/preset/theme-dark.toml index 6cb2a61d..acfe6527 100644 --- a/yazi-config/preset/theme-dark.toml +++ b/yazi-config/preset/theme-dark.toml @@ -3,8 +3,8 @@ # If you want to dynamically override their content based on dark/light mode, you can specify two different flavors # for dark and light modes under `[flavor]`, and do so in those flavors instead. -"$schema" = "https://yazi-rs.github.io/schemas/theme.json" +#:schema https://yazi-rs.github.io/schemas/theme.json # vim:fileencoding=utf-8:foldmethod=marker # : Flavor {{{ diff --git a/yazi-config/preset/theme-light.toml b/yazi-config/preset/theme-light.toml index b2ee831d..7730c866 100644 --- a/yazi-config/preset/theme-light.toml +++ b/yazi-config/preset/theme-light.toml @@ -3,8 +3,8 @@ # If you want to dynamically override their content based on dark/light mode, you can specify two different flavors # for dark and light modes under `[flavor]`, and do so in those flavors instead. -"$schema" = "https://yazi-rs.github.io/schemas/theme.json" +#:schema https://yazi-rs.github.io/schemas/theme.json # vim:fileencoding=utf-8:foldmethod=marker # : Flavor {{{ diff --git a/yazi-config/preset/yazi-default.toml b/yazi-config/preset/yazi-default.toml index f6566e5c..80e9726f 100644 --- a/yazi-config/preset/yazi-default.toml +++ b/yazi-config/preset/yazi-default.toml @@ -1,6 +1,7 @@ -# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. +# A TOML linter such as https://github.com/tombi-toml/tombi can use this schema to validate your config. # If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. -"$schema" = "https://yazi-rs.github.io/schemas/yazi.json" + +#:schema https://yazi-rs.github.io/schemas/yazi.json [mgr] ratio = [ 1, 4, 3 ]