Compare commits
3 commits
4dc4cdf7e3
...
50937a342f
| Author | SHA1 | Date | |
|---|---|---|---|
| 50937a342f | |||
| 4449fd5b45 | |||
| ea6727db40 |
5 changed files with 66 additions and 9 deletions
46
.arclint
Normal file
46
.arclint
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
"linters": {
|
||||||
|
"stylua": {
|
||||||
|
"type": "script-and-regex",
|
||||||
|
"script-and-regex.script": "sh -c 'stylua --check \"$0\" || true'",
|
||||||
|
"script-and-regex.regex": "/(?P<line>\\d+).*\\|\\-/m",
|
||||||
|
"include": "(\\.lua$)"
|
||||||
|
},
|
||||||
|
"luacheck": {
|
||||||
|
"type": "script-and-regex",
|
||||||
|
"script-and-regex.script": "sh -c 'luacheck \"$0\" || true'",
|
||||||
|
"script-and-regex.regex": "/^.*?:(?P<line>\\d+):(?P<char>\\d+):\\s+\\((?P<code>\\w+)\\) (?P<message>.*?)$/m",
|
||||||
|
"include": "(\\.lua$)"
|
||||||
|
},
|
||||||
|
"cargo": {
|
||||||
|
"type": "script-and-regex",
|
||||||
|
"script-and-regex.script": "sh -c 'cargo fmt --check --'",
|
||||||
|
"script-and-regex.regex": "/(?P<message>.*?)/",
|
||||||
|
"include": "(\\.rs$)"
|
||||||
|
},
|
||||||
|
"clippy": {
|
||||||
|
"type": "script-and-regex",
|
||||||
|
"script-and-regex.script": "sh -c 'cargo clippy --'",
|
||||||
|
"script-and-regex.regex": "/(?P<message>.*?)/",
|
||||||
|
"include": "(\\.rs$)"
|
||||||
|
},
|
||||||
|
"prettier": {
|
||||||
|
"type": "script-and-regex",
|
||||||
|
"script-and-regex.script": "prettier --check",
|
||||||
|
"script-and-regex.regex": "/(?P<message>.*?)/",
|
||||||
|
"include": "(\\.yml$|\\.json[c5]?$|\\.[tj]sx?$)"
|
||||||
|
},
|
||||||
|
"merge-conflict": {
|
||||||
|
"type": "merge-conflict"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"chmod": {
|
||||||
|
"type": "chmod"
|
||||||
|
},
|
||||||
|
"generated": {
|
||||||
|
"type": "generated"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -29,11 +29,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run stylua
|
- name: Run stylua
|
||||||
uses: JohnnyMorganz/stylua-action@v4.0.0
|
run: npx @johnnymorganz/stylua-bin --check .
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
version: latest
|
|
||||||
args: --check .
|
|
||||||
|
|
||||||
cargo-format:
|
cargo-format:
|
||||||
name: Cargo Format
|
name: Cargo Format
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
local window = require "ivy.window"
|
local window = require "ivy.window"
|
||||||
local prompt = require "ivy.prompt"
|
local prompt = require "ivy.prompt"
|
||||||
local utils = require "ivy.utils"
|
|
||||||
|
|
||||||
local controller = {}
|
local controller = {}
|
||||||
controller.action = utils.actions
|
|
||||||
|
|
||||||
controller.items = nil
|
controller.items = nil
|
||||||
controller.callback = nil
|
controller.callback = nil
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,28 @@
|
||||||
local controller = require "ivy.controller"
|
local controller = require "ivy.controller"
|
||||||
|
local libivy = require "ivy.libivy"
|
||||||
local config = require "ivy.config"
|
local config = require "ivy.config"
|
||||||
|
local utils = require "ivy.utils"
|
||||||
local register_backend = require "ivy.register_backend"
|
local register_backend = require "ivy.register_backend"
|
||||||
|
|
||||||
local ivy = {}
|
local ivy = {}
|
||||||
|
|
||||||
|
ivy.action = utils.actions
|
||||||
|
ivy.utils = utils
|
||||||
|
|
||||||
|
ivy.match = libivy.ivy_match
|
||||||
|
|
||||||
ivy.run = controller.run
|
ivy.run = controller.run
|
||||||
ivy.register_backend = register_backend
|
ivy.register_backend = register_backend
|
||||||
|
|
||||||
|
ivy.checkpoint = controller.checkpoint
|
||||||
|
ivy.paste = controller.paste
|
||||||
|
ivy.complete = controller.complete
|
||||||
|
ivy.destroy = controller.destroy
|
||||||
|
ivy.input = controller.input
|
||||||
|
ivy.next = controller.next
|
||||||
|
ivy.previous = controller.previous
|
||||||
|
ivy.search = controller.search
|
||||||
|
|
||||||
-- Private variable to check if ivy has been setup, this is to prevent multiple
|
-- Private variable to check if ivy has been setup, this is to prevent multiple
|
||||||
-- setups of ivy. This is only exposed for testing purposes.
|
-- setups of ivy. This is only exposed for testing purposes.
|
||||||
---@private
|
---@private
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
local controller = require "ivy.controller"
|
local api = require "ivy"
|
||||||
|
|
||||||
-- Put the controller in to the vim global so we can access it in mappings
|
-- Put the controller in to the vim global so we can access it in mappings
|
||||||
-- better without requires. You can call controller commands like `vim.ivy.xxx`.
|
-- better without requires. You can call controller commands like `vim.ivy.xxx`.
|
||||||
-- luacheck: ignore
|
-- luacheck: ignore
|
||||||
vim.ivy = controller
|
vim.ivy = api
|
||||||
|
|
||||||
vim.paste = (function(overridden)
|
vim.paste = (function(overridden)
|
||||||
return function(lines, phase)
|
return function(lines, phase)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue