You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/gitlab.nvim.txt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -219,6 +219,7 @@ you call this function with no values the defaults will be used:
219
219
toggle_tree_type = "i", -- Toggle type of discussion tree - "simple", or "by_file_name"
220
220
publish_draft = "P", -- Publish the currently focused note/comment
221
221
toggle_draft_mode = "D", -- Toggle between draft mode (comments posted as drafts) and live mode (comments are posted immediately)
222
+
toggle_sort_method = "st", -- Toggle whether discussions are sorted by the "latest_reply", or by "original_comment", see `:h gitlab.nvim.toggle_sort_method`
222
223
toggle_node = "t", -- Open or close the discussion
223
224
toggle_all_discussions = "T", -- Open or close separately both resolved and unresolved discussions
224
225
toggle_resolved_discussions = "R", -- Open or close all resolved discussions
@@ -255,6 +256,7 @@ you call this function with no values the defaults will be used:
255
256
auto_open = true, -- Automatically open when the reviewer is opened
256
257
default_view = "discussions" -- Show "discussions" or "notes" by default
257
258
blacklist = {}, -- List of usernames to remove from tree (bots, CI, etc)
259
+
sort_by = "latest_reply" -- Sort discussion tree by the "latest_reply", or by "original_comment", see `:h gitlab.nvim.toggle_sort_method`
258
260
keep_current_open = false, -- If true, current discussion stays open even if it should otherwise be closed when toggling
259
261
position = "left", -- "top", "right", "bottom" or "left"
260
262
size = "20%", -- Size of split
@@ -349,6 +351,9 @@ you call this function with no values the defaults will be used:
349
351
resolved = "DiagnosticSignOk",
350
352
unresolved = "DiagnosticSignWarn",
351
353
draft = "DiffviewNonText",
354
+
draft_mode = "DiagnosticWarn",
355
+
live_mode = "DiagnosticOk",
356
+
sort_method = "Keyword",
352
357
}
353
358
}
354
359
})
@@ -929,6 +934,13 @@ gitlab.toggle_draft_mode() ~
929
934
Toggles between draft mode, where comments and notes are added to a review as
930
935
drafts, and regular (or live) mode, where comments are posted immediately.
931
936
937
+
*gitlab.nvim.toggle_sort_method*
938
+
gitlab.toggle_sort_method() ~
939
+
940
+
Toggles whether the discussion tree is sorted by the "latest_reply", with
941
+
threads with the most recent activity on top (the default), or by
942
+
"original_comment", with the oldest threads on top.
0 commit comments