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
|
cursorline = true
|
||||||
bufferline = "multiple"
|
bufferline = "multiple"
|
||||||
color-modes = true
|
color-modes = true
|
||||||
|
shell = ['fish', '-c']
|
||||||
|
|
||||||
mouse = true
|
mouse = true
|
||||||
continue-comments = false
|
continue-comments = false
|
||||||
|
|
|
@ -278,6 +278,7 @@ injection-regex = "just"
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
indent = { tab-width = 4, unit = " " }
|
indent = { tab-width = 4, unit = " " }
|
||||||
auto-format = false
|
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"]
|
language-servers = ["just-lsp", "scls"]
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
# capture the input
|
set -l temp (mktemp)
|
||||||
# set -l temp (mktemp)
|
cat >$temp
|
||||||
set -l input (cat -a)
|
just --justfile $temp --dump
|
||||||
echo $input >testoutput
|
rm $temp
|
||||||
# echo $input >$temp
|
|
||||||
# just --justfile $temp --dump
|
|
||||||
|
|
|
@ -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