Feat: Configure discussion tree split width and position

This MR improves the configurability of the plugin by using Nui's split
system rather than managing the splits ourselves. This lets the user
configure both the positioning of the discussion tree and it's width,
and reduces overall maintenance of split management for the plugin.
This commit is contained in:
Harrison Cramer
2023-08-12 14:36:48 -04:00
parent e958b35bd5
commit 97195d4ab5
3 changed files with 24 additions and 7 deletions

View File

@@ -96,6 +96,9 @@ require("gitlab").setup({
delete_comment = "dd",
reply_to_comment = "r",
toggle_node = "t",
position = "left", -- "top", "right", "bottom" or "left"
size = "20%", -- Size of split
relative = "editor" -- Position relative to "editor" or "window"
},
dialogue = { -- The confirmation dialogue for deleting comments
focus_next = { "j", "<Down>", "<Tab>" },