nvim: fix pkgdev commands

This commit is contained in:
tastytea 2022-08-30 18:19:48 +02:00
parent 9cf7c88e93
commit 996b13e954
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -1,2 +1,9 @@
vim.api.nvim_create_user_command('PkgCommit',
':terminal pkgdev commit --signoff --edit', {})
vim.api.nvim_create_user_command('PkgCommit', function()
vim.cmd(string.format('vsplit | lcd %s | ' ..
'terminal pkgdev --verbose commit --signoff --edit',
vim.fn.expand('%:p:h')))
end, {})
vim.api.nvim_create_user_command('PkgManifest', function()
vim.cmd(string.format('vsplit | lcd %s | ' ..
'terminal pkgdev --verbose manifest', vim.fn.expand('%:p:h')))
end, {})