Bugfix: Fixed default state

This commit is contained in:
Harrison Cramer
2023-08-28 08:21:31 -04:00
parent 3108a3709f
commit c29fa4f43f
2 changed files with 9 additions and 5 deletions

View File

@@ -146,14 +146,14 @@ require("gitlab").create_comment()
Gitlab groups threads of comments together into "discussions."
To display discussions for the current MR, use the `list_discussions()` command, which will show the discussions in a split window.
To display discussions for the current MR, use the `toggle_discussions()` command, which will show the discussions in a split window.
You can jump to the comment's location the reviewer window by using the `m` key, or the actual file with the 'j' key, when hovering over the line in the tree.
Within the discussion tree, you can delete/edit/reply to comments, or toggle them as resolved or not.
```lua
require("gitlab").list_discussions()
require("gitlab").toggle_discussions()
require("gitlab").delete_comment()
require("gitlab").edit_comment()
require("gitlab").reply()

View File

@@ -10,6 +10,7 @@ local M = {}
M.settings = {
port = 21036,
log_path = (vim.fn.stdpath("cache") .. "/gitlab.nvim.log"),
reviewer = "delta",
popup = {
exit = "<Esc>",
perform_action = "<leader>s",
@@ -17,6 +18,7 @@ M.settings = {
discussion_tree = {
toggle = "<leader>d",
jump_to_file = "o",
jump_to_reviewer = "m",
edit_comment = "e",
delete_comment = "dd",
reply = "r",
@@ -29,9 +31,11 @@ M.settings = {
unresolved = ''
},
review_pane = {
delta = {
added_file = "",
modified_file = "",
removed_file = "",
}
},
dialogue = {
focus_next = { "j", "<Down>", "<Tab>" },