[task_config] shell = "nu --no-config-file --commands" [tool_alias] codeformat = "github:CppCXY/EmmyLuaCodeStyle" [tools] "aqua:nushell/nushell" = "0.115.1" codeformat = "1.6.0" lua-language-server = "3.19.1" [tasks.default] description = "List tasks" run = "mise tasks ls" [tasks.fmt] description = "Format Lua with the same engine used by LuaLS" run = "CodeFormat format -w . -c .editorconfig --ignores 'bugabinga/nugu/palette_*.lua'" [tasks.lint] description = "Check Lua formatting and diagnostics" run = [ "CodeFormat check -w . -c .editorconfig --ignores 'bugabinga/nugu/palette_*.lua' --diagnosis-as-error", "lua-language-server --check=. --checklevel=Warning --check_format=pretty", ] [tasks.test] description = "Run WezTerm tests" run = "nu --no-config-file tests/wezterm_instances_test.nu" [tasks.check] description = "Lint and test WezTerm configuration" depends = ["lint", "test"]