dotfiles/.config/nvim/lua/my/commands.lua
2022-09-02 23:20:20 +02:00

10 lines
399 B
Lua

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