Add option to choose random server port (#65)

Updates the plugin to automatically choose a random port when started when no port is provided. This will allow multiple Neovim instances to open at the same time in different projects.
This commit is contained in:
johnybx
2023-10-21 17:39:37 +02:00
committed by GitHub
parent 2100bf2e43
commit c8a0267ba6
5 changed files with 119 additions and 66 deletions

View File

@@ -7,11 +7,11 @@ local u = require("gitlab.utils")
local M = {}
-- These are the default settings for the plugin
M.settings = {
port = 21036,
M.settings = {
port = nil, -- choose random port
log_path = (vim.fn.stdpath("cache") .. "/gitlab.nvim.log"),
reviewer = "delta",
attachment_dir = '',
attachment_dir = "",
popup = {
exit = "<Esc>",
perform_action = "<leader>s",
@@ -29,15 +29,15 @@ M.settings = {
relative = "editor",
position = "left",
size = "20%",
resolved = '',
unresolved = '',
resolved = "",
unresolved = "",
},
review_pane = {
delta = {
added_file = "",
modified_file = "",
removed_file = "",
}
},
},
pipeline = {
created = "",