Create GitLab Merge Requests directly from within neovim, by using their Git push options.
- plenary.nvim
- GitLab version 15+ if planning on using the draft push option, 12.2+ otherwise
Using packer:
use {
'rnprest/merge-request.nvim',
requires = 'nvim-lua/plenary.nvim',
config = function()
require('merge-request').setup {
-- Default options are listed below - you can just call setup() if these are fine with you
mapping = '<leader>mr',
open_in_browser = true,
remove_source_branch = true,
draft = false,
}
end,
}
- Hit
<leader>mr
(or your provided override) - Start typing the title of your merge request
- Hit
<CR>
to save the title
- Hit
- Start typing the description of your merge request
- Hit
q
or<esc>
to abort the merge request creation - Hit
<CR>
to save the description and submit the MR
- Hit
Access the help tags with :h merge-request