diff --git a/.zed/settings.json b/.zed/settings.json index fc38e77..aad9e35 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -6,12 +6,20 @@ }, "code_actions_on_format": { "source.fixAll.biome": true, - "source.organizeImports.biome": true + "source.organizeImports.biome": true, + "source.organizeImports": true }, "languages": { "YAML": { "tab_size": 2, "hard_tabs": false + }, + "Go": { + "formatter": { + "language_server": { + "name": "gopls" + } + } } } } diff --git a/lefthook.yml b/lefthook.yml index 1596122..6f1be6e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -4,3 +4,7 @@ pre-commit: glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}" run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files} stage_fixed: true + check_go: + glob: "*.go" + run: gofmt -w {staged_files} + stage_fixed: true