This repository was archived by the owner on Jan 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmise.toml
More file actions
47 lines (39 loc) · 1.83 KB
/
mise.toml
File metadata and controls
47 lines (39 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# mise configuration for codecompanion-gitcommit.nvim
# Run tasks with: mise run <task>
# List tasks with: mise tasks
[tools]
# stylua for code formatting
"cargo:stylua" = "latest"
[settings]
# Use PowerShell 7 (pwsh) on Windows
windows_default_inline_shell_args = "pwsh -NoProfile -Command"
[tasks.deps]
description = "Install test dependencies (mini.nvim)"
run = """
mkdir -p deps
test -d deps/mini.nvim/.git || (rm -rf deps/mini.nvim && git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim)
"""
run_windows = """
if (-not (Test-Path deps)) { New-Item -ItemType Directory -Path deps | Out-Null }
if (-not (Test-Path deps/mini.nvim/.git)) { Remove-Item -Recurse -Force deps/mini.nvim -ErrorAction SilentlyContinue; git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim }
"""
[tasks.test]
description = "Run all unit tests"
depends = ["deps"]
run = "nvim --headless -u tests/minimal_init.lua -c 'lua MiniTest.run()'"
run_windows = 'nvim --headless -u tests/minimal_init.lua -c "lua MiniTest.run()"'
[tasks."test:file"]
description = "Run tests for a specific file"
depends = ["deps"]
run = 'nvim --headless -u tests/minimal_init.lua -c "lua MiniTest.run_file(\"{{arg(name=\"file\")}}\")"'
run_windows = 'nvim --headless -u tests/minimal_init.lua -c "lua MiniTest.run_file([[{{arg(name=\"file\")}}]])"'
[tasks.lint]
description = "Check code formatting with stylua"
run = "stylua --check ."
[tasks.fmt]
description = "Format code with stylua"
run = "stylua ."
[tasks.doc]
description = "Download latest CodeCompanion documentation"
run = "curl -fsSL -o codecompanion.txt https://github.com/olimorris/codecompanion.nvim/raw/refs/heads/main/doc/codecompanion.txt"
run_windows = "Invoke-WebRequest -Uri 'https://github.com/olimorris/codecompanion.nvim/raw/refs/heads/main/doc/codecompanion.txt' -OutFile 'codecompanion.txt'"