Added lots of comments and documentation 📘

This commit is contained in:
Harrison Cramer
2023-08-18 19:22:57 -04:00
parent 2846dd3239
commit 16ed361333
7 changed files with 54 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ local keymaps = require("gitlab.keymaps")
local descriptionPopup = Popup(u.create_popup_state("Loading Description...", "80%", "80%"))
local M = {}
-- The MR description will mount in a popup when this funciton is called
M.summary = function()
descriptionPopup:mount()
local currentBuffer = vim.api.nvim_get_current_buf()
@@ -23,6 +24,7 @@ M.summary = function()
end)
end
-- This function will PUT the new description to the Go server
M.edit_description = function(text)
local jsonTable = { description = text }
local json = vim.json.encode(jsonTable)