Feat: Improve Logging for Go Server (#68)

This MR adds an optional `debug` object to the configuration table to help users debug any connectivity issues with Gitlab. The table lets you log the requests and responses from the Go server.
This commit is contained in:
Harrison (Harry) Cramer
2023-10-30 21:57:23 -04:00
committed by GitHub
parent c8a0267ba6
commit f853c2f940
4 changed files with 72 additions and 19 deletions

View File

@@ -86,6 +86,7 @@ Here is the default setup function. All of these values are optional, and if you
require("gitlab").setup({
port = nil, -- The port of the Go server, which runs in the background, if omitted or `nil` the port will be chosen automatically
log_path = vim.fn.stdpath("cache") .. "/gitlab.nvim.log", -- Log path for the Go server
debug = { go_request = false, go_response = false }, -- Which values to log
reviewer = "delta", -- The reviewer type ("delta" or "diffview")
attachment_dir = nil, -- The local directory for files (see the "summary" section)
popup = { -- The popup for comment creation, editing, and replying