Added lots of comments and documentation 📘
This commit is contained in:
@@ -2,9 +2,9 @@ local u = require("gitlab.utils")
|
||||
local state = require("gitlab.state")
|
||||
local M = {}
|
||||
|
||||
-- Sets the keymaps for the popup window that's used for replies, the summary, etc
|
||||
M.set_popup_keymaps = function(popup, action)
|
||||
vim.keymap.set('n', state.keymaps.popup.exit, function() u.exit(popup) end, { buffer = true })
|
||||
vim.keymap.set('n', ':', '', { buffer = true })
|
||||
if action ~= nil then
|
||||
vim.keymap.set('n', state.keymaps.popup.perform_action, function()
|
||||
local text = u.get_buffer_text(popup.bufnr)
|
||||
|
||||
Reference in New Issue
Block a user