commit
9c6ec75464
4 changed files with 15 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: Stylua
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
@ -11,9 +11,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: JohnnyMorganz/stylua-action@v4
|
- uses: JohnnyMorganz/stylua-action@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
version: latest
|
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 .
|
||||||
|
|
@ -285,7 +285,7 @@ function M.setup(user_config)
|
||||||
end
|
end
|
||||||
end, {
|
end, {
|
||||||
nargs = "*",
|
nargs = "*",
|
||||||
complete = function(ArgLead, CmdLine, ...)
|
complete = function(ArgLead, _, _)
|
||||||
local commands = vim.list_extend(vim.deepcopy(competition_types), { "run", "debug", "diff" })
|
local commands = vim.list_extend(vim.deepcopy(competition_types), { "run", "debug", "diff" })
|
||||||
return vim.tbl_filter(function(cmd)
|
return vim.tbl_filter(function(cmd)
|
||||||
return cmd:find(ArgLead, 1, true) == 1
|
return cmd:find(ArgLead, 1, true) == 1
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,8 @@ function M.setup(config)
|
||||||
|
|
||||||
local snippets = {}
|
local snippets = {}
|
||||||
|
|
||||||
for name, snippet in pairs(config.snippets or {}) do
|
for _, snippet in pairs(config.snippets or {}) do
|
||||||
if type(snippet) == "table" and snippet.trig then
|
table.insert(snippets, snippet)
|
||||||
table.insert(snippets, snippet)
|
|
||||||
else
|
|
||||||
table.insert(snippets, snippet)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if #snippets > 0 then
|
if #snippets > 0 then
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
std = "vim"
|
std = "vim"
|
||||||
|
|
||||||
|
[config]
|
||||||
|
lua52 = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue