commit
9c6ec75464
4 changed files with 15 additions and 10 deletions
|
|
@ -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 .
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
std = "vim"
|
||||
|
||||
[config]
|
||||
lua52 = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue