AutoYADM commit: 2025-04-06 19:30:07

This commit is contained in:
Daniel Fichtinger 2025-04-06 19:30:08 -04:00
parent b7cfa294f8
commit 84d9887a36
5 changed files with 39 additions and 7 deletions

View file

@ -0,0 +1,6 @@
function justfmt --description "STDIO Justfile formatter"
set -l temp (mktemp)
cat >$temp
just --justfile $temp --dump
rm $temp
end

View file

@ -7,6 +7,7 @@ default-yank-register = '+'
cursorline = true
bufferline = "multiple"
color-modes = true
shell = ['fish', '-c']
mouse = true
continue-comments = false

View file

@ -278,6 +278,7 @@ injection-regex = "just"
comment-token = "#"
indent = { tab-width = 4, unit = " " }
auto-format = false
formatter = { command = "just", args = ["--dump"] } # Please see: https://github.com/helix-editor/helix/issues/9703
formatter = { command = "fish", args=["-c", "justfmt"] }
# formatter = { command = "just", args = ["--dump"] } # Please see: https://github.com/helix-editor/helix/issues/9703
language-servers = ["just-lsp", "scls"]

View file

@ -1,8 +1,6 @@
#!/usr/bin/env fish
# capture the input
# set -l temp (mktemp)
set -l input (cat -a)
echo $input >testoutput
# echo $input >$temp
# just --justfile $temp --dump
set -l temp (mktemp)
cat >$temp
just --justfile $temp --dump
rm $temp

View file

@ -1 +1,27 @@
test:
#!/bin/sh
if command -v tparse >/dev/null 2>&1; then
set -o pipefail && go test ./... -json | tparse --all --smallscreen
else
go test ./...
fi
commit:
git add .
git commit
amend:
git add .
git commit --amend
fmt:
go fmt ./...
tools:
go install tool
lint:
golangci-lint run
check: fmt lint