This MR adds more information into the summary view, including the MR author, created at date, merge status, draft status, conflicts, and pipeline status, among other things. This is configurable via the setup function.
37 lines
723 B
Lua
37 lines
723 B
Lua
local Layout = require("nui.layout")
|
|
local Popup = require("nui.popup")
|
|
|
|
local opts = {
|
|
buf_options = {
|
|
filetype = "markdown",
|
|
},
|
|
focusable = true,
|
|
border = {
|
|
style = "rounded",
|
|
},
|
|
}
|
|
|
|
local title_popup = Popup(opts)
|
|
local description_popup = Popup(opts)
|
|
local info_popup = Popup(opts)
|
|
|
|
local layout = Layout(
|
|
{
|
|
position = "50%",
|
|
relative = "editor",
|
|
size = {
|
|
width = "95%",
|
|
height = "95%",
|
|
},
|
|
},
|
|
Layout.Box({
|
|
Layout.Box(title_popup, { size = { height = 3 } }),
|
|
Layout.Box({
|
|
Layout.Box(description_popup, { grow = 1 }),
|
|
Layout.Box(info_popup, { size = { height = 15 } }),
|
|
}, { dir = "col", size = "100%" }),
|
|
}, { dir = "col" })
|
|
)
|
|
|
|
layout:mount()
|