Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ vim.cmd.qall { bang = true }

## Code Style Guidelines

### Runtime
- LuaJIT, do **NOT** use goto

### Formatting
- Use stylua with 2-space indentation, 100 char column width
- Prefer single quotes, auto-prefer single quotes
Expand Down
36 changes: 30 additions & 6 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
################################################################################
## Tool Alias
################################################################################

[tool_alias]
gh_emmylua_ls = "github:EmmyLuaLs/emmylua-analyzer-rust"
gh_emmylua_check = "github:EmmyLuaLs/emmylua-analyzer-rust"

################################################################################
## Tools
################################################################################

[tools]
# nvimv needs jq:
jq = "1.8.1"
Expand All @@ -9,20 +21,32 @@ lua = "5.1.5"
neovim = "0.11.5"
stylua = "2.3.1"

[tools."cargo:emmylua_check"]
[tools.gh_emmylua_ls]
version = "0.19.0"
url = "https://github.com/EmmyLuaLs/emmylua-analyzer-rust@tag:0.19.0"
crate = "emmylua_check"
[tools.gh_emmylua_ls.platforms]
linux-x64 = { asset_pattern = "*_ls-linux-x64*" }
macos-x64 = { asset_pattern = "*_ls-darwin-x64*" }
macos-arm64 = { asset_pattern = "*_ls-darwin-arm64*" }

[tools."cargo:emmylua_ls"]
[tools.gh_emmylua_check]
version = "0.19.0"
url = "https://github.com/EmmyLuaLs/emmylua-analyzer-rust@tag:0.19.0"
crate = "emmylua_ls"
[tools.gh_emmylua_check.platforms]
linux-x64 = { asset_pattern = "*_check-linux-x64*" }
macos-x64 = { asset_pattern = "*_check-darwin-x64*" }
macos-arm64 = { asset_pattern = "*_check-darwin-arm64*" }

################################################################################
# Env
################################################################################

[env]
ASDF_LUA_LUAROCKS_VERSION = "3.12.2"
_.source = { path = "./scripts/env.sh", tools = true }

################################################################################
# Tasks
################################################################################

[tasks]
lint = "emmylua_check --ignore '.prefix/**/*.*' ."
fmt = "stylua ."
Expand Down