Skip to content

Commit 4f7caba

Browse files
committed
docs: fix and improve documentation
1 parent d03d693 commit 4f7caba

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/gitlab.nvim.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,8 @@ drafts, and regular (or live) mode, where comments are posted immediately.
938938
gitlab.toggle_sort_method() ~
939939

940940
Toggles whether the discussion tree is sorted by the "latest_reply", with
941-
threads with the most recent activity on top, or by "original_comment", with
942-
the oldest threads on top.
941+
threads with the most recent activity on top (the default), or by
942+
"original_comment", with the oldest threads on top.
943943

944944
*gitlab.nvim.add_assignee*
945945
gitlab.add_assignee() ~

lua/gitlab/actions/discussions/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,8 @@ M.toggle_draft_mode = function()
805805
winbar.update_winbar()
806806
end
807807

808-
---Toggle between draft mode (comments posted as drafts) and live mode (comments are posted immediately)
808+
---Toggle between sorting by "original comment" (oldest at the top) or "latest reply" (newest at the
809+
---top).
809810
M.toggle_sort_method = function()
810811
if state.settings.discussion_tree.sort_by == "original_comment" then
811812
state.settings.discussion_tree.sort_by = "latest_reply"

0 commit comments

Comments
 (0)