dotfiles/.config/nvim/lua/my/commands.lua

10 lines
399 B
Lua
Raw Normal View History

2022-08-30 18:19:48 +02:00
vim.api.nvim_create_user_command('PkgCommit', function()
vim.cmd(string.format('vsplit | ' ..
'terminal cd %s && pkgdev --verbose commit --signoff --edit',
2022-08-30 18:19:48 +02:00
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')))
2022-08-30 18:19:48 +02:00
end, {})