Merge pull request #2 from barrett-ruth/feat/ci

selene too
This commit is contained in:
Barrett Ruth 2025-09-12 07:14:18 +02:00 committed by GitHub
commit 9c6ec75464
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 10 deletions

View file

@ -1,4 +1,4 @@
name: Stylua
name: ci
on:
pull_request:
@ -11,9 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
args: --check .
- name: Lint with Selene
uses: NTBBloodbath/selene-action@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --display-style quiet .

View file

@ -285,7 +285,7 @@ function M.setup(user_config)
end
end, {
nargs = "*",
complete = function(ArgLead, CmdLine, ...)
complete = function(ArgLead, _, _)
local commands = vim.list_extend(vim.deepcopy(competition_types), { "run", "debug", "diff" })
return vim.tbl_filter(function(cmd)
return cmd:find(ArgLead, 1, true) == 1

View file

@ -8,12 +8,8 @@ function M.setup(config)
local snippets = {}
for name, snippet in pairs(config.snippets or {}) do
if type(snippet) == "table" and snippet.trig then
table.insert(snippets, snippet)
else
table.insert(snippets, snippet)
end
for _, snippet in pairs(config.snippets or {}) do
table.insert(snippets, snippet)
end
if #snippets > 0 then

View file

@ -1 +1,4 @@
std = "vim"
[config]
lua52 = true