AutoYADM commit: 2025-04-06 19:30:07
This commit is contained in:
parent
b7cfa294f8
commit
84d9887a36
5 changed files with 39 additions and 7 deletions
6
.config/fish/functions/justfmt.fish
Normal file
6
.config/fish/functions/justfmt.fish
Normal file
|
@ -0,0 +1,6 @@
|
|||
function justfmt --description "STDIO Justfile formatter"
|
||||
set -l temp (mktemp)
|
||||
cat >$temp
|
||||
just --justfile $temp --dump
|
||||
rm $temp
|
||||
end
|
|
@ -7,6 +7,7 @@ default-yank-register = '+'
|
|||
cursorline = true
|
||||
bufferline = "multiple"
|
||||
color-modes = true
|
||||
shell = ['fish', '-c']
|
||||
|
||||
mouse = true
|
||||
continue-comments = false
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue