fmt: reformat *.toml with tombi, add tombi to treefmt.nix

This commit is contained in:
2026-08-29 09:49:32 +08:00
parent dd0097a1f8
commit 8b141b9da0
5 changed files with 53 additions and 43 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ symbol = " "
symbol = " "
[git_commit]
tag_symbol = ''
tag_symbol = ""
[golang]
symbol = " "
@@ -6,44 +6,44 @@
# Default colors
[colors.primary]
background = '#24283b'
foreground = '#c0caf5'
background = "#24283b"
foreground = "#c0caf5"
[colors.cursor]
cursor = '#c0caf5'
text = '#24283b'
cursor = "#c0caf5"
text = "#24283b"
[colors.selection]
text = '#c0caf5'
background = '#2e3c64'
text = "#c0caf5"
background = "#2e3c64"
# Normal colors
[colors.normal]
black = '#1d202f'
red = '#f7768e'
green = '#9ece6a'
yellow = '#e0af68'
blue = '#7aa2f7'
magenta = '#bb9af7'
cyan = '#7dcfff'
white = '#a9b1d6'
black = "#1d202f"
red = "#f7768e"
green = "#9ece6a"
yellow = "#e0af68"
blue = "#7aa2f7"
magenta = "#bb9af7"
cyan = "#7dcfff"
white = "#a9b1d6"
# Bright colors
[colors.bright]
black = '#414868'
red = '#ff899d'
green = '#9fe044'
yellow = '#faba4a'
blue = '#8db0ff'
magenta = '#c7a9ff'
cyan = '#a4daff'
white = '#c0caf5'
black = "#414868"
red = "#ff899d"
green = "#9fe044"
yellow = "#faba4a"
blue = "#8db0ff"
magenta = "#c7a9ff"
cyan = "#a4daff"
white = "#c0caf5"
# Indexed Colors
[[colors.indexed_colors]]
index = 16
color = '#ff9e64'
color = "#ff9e64"
[[colors.indexed_colors]]
index = 17
color = '#db4b4b'
color = "#db4b4b"
+20 -5
View File
@@ -1,12 +1,27 @@
{ inputs, ... }:
{
imports = [ inputs.treefmt.flakeModule ];
perSystem.treefmt = {
{ inputs, ... }: {
imports = [
inputs.treefmt.flakeModule
];
perSystem.treefmt = { lib, pkgs, ... }: {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
stylua.enable = true;
keep-sorted.enable = true;
stylua.enable = true;
};
settings.formatter.tombi = {
command = "${pkgs.bash}/bin/bash";
options = [
"-euc"
''
for file in "$@"; do
${lib.getExe pkgs.tombi} fmt $file
done
''
"--"
];
includes = [ "*.toml" ];
};
settings.excludes = [ "secrets/*" ];
};
}
+4 -9
View File
@@ -1,18 +1,13 @@
#:schema https://raw.githubusercontent.com/crate-ci/typos/refs/heads/master/config.schema.json
[files]
extend-exclude = [
"secrets"
]
extend-exclude = ["secrets"]
[default]
extend-ignore-identifiers-re = ["KEY_102ND", "VE_UE"]
[default.extend-words]
# noice.nvim
noice = "noice"
enew = "enew"
iif = "iif"
[default]
extend-ignore-identifiers-re = [
"KEY_102ND",
"VE_UE"
]