46517953e5
- add lua modules for spec parsing, lock state, fs helpers and the installer - add ArtiPackSync/ArtiPackClean/ArtiPackList commands and help doc - add headless nvim test harness and specs - add make test/lint/fmt/pre-commit and patch/minor/major bump targets - add woodpecker test, lint and pre-commit pipelines
21 lines
621 B
Lua
21 lines
621 B
Lua
if vim.g.loaded_arti_pack then
|
|
return
|
|
end
|
|
vim.g.loaded_arti_pack = true
|
|
|
|
local function arti()
|
|
return require('arti-pack')
|
|
end
|
|
|
|
vim.api.nvim_create_user_command('ArtiPackSync', function(cmd)
|
|
arti().sync({ force = cmd.bang })
|
|
end, { bang = true, desc = 'Install missing arti-pack plugins and update changed tags' })
|
|
|
|
vim.api.nvim_create_user_command('ArtiPackClean', function()
|
|
arti().clean()
|
|
end, { desc = 'Remove installed plugins that are no longer in the spec' })
|
|
|
|
vim.api.nvim_create_user_command('ArtiPackList', function()
|
|
arti().list()
|
|
end, { desc = 'List configured arti-pack plugins and their state' })
|