1- *gitlab.nvim.txt* Create, review, and manage Gitlab reources without leaving Neovim
1+ *gitlab.nvim.txt* Create, review, and manage Gitlab resources without leaving Neovim
22
33==============================================================================
44Table of Contents *gitlab.nvim.table-of-contents*
@@ -320,7 +320,7 @@ To prevent losing your carefully crafted note/comment/suggestion you can set
320320which the contents of the popup window will be saved just before the action is
321321performed. A practical setting is `settings.popup.backup_register = "+"` which
322322saves to the system clipboard (see | quoteplus | ). This lets you easily apply
323- the action on Gitlab in a browser, if it keeps failing in `gitlab.nvim` .
323+ the action on Gitlab in a browser, if it keeps failing in `gitlab.nvim` .
324324
325325If you experience such problems, please first read the
326326| gitlab.nvim.troubleshooting | section. If it does not help, see if there are
@@ -354,6 +354,16 @@ delete/edit/reply are available on the note tree.
354354 require("gitlab").create_note()
355355<
356356
357+ When the 'wrap' option is on, line wrapping can make the discussion tree
358+ harder to read. You can use the 'breakindent' option to visually indent tree
359+ nodes at the same level. If you don't want to set 'breakindent' globally, you
360+ can set this only for the `gitlab` file type (the file type of discussions and
361+ notes). One way of doing this is by creating a file called
362+ $XDG_CONFIG_HOME/nvim/after/ftplugin/gitlab.lua with the following contents:
363+ >lua
364+ vim.o.breakindent = true
365+ <
366+
357367LABELS *gitlab.nvim.labels*
358368
359369You can add or remove labels from the current MR.
@@ -514,7 +524,7 @@ reviewer when checking out a new branch:
514524>lua
515525 local gitlab = require("gitlab")
516526 vim.keymap.set("n", "glB", function ()
517- require("gitlab.server").restart(function ()
527+ require("gitlab.server").restart(function ()
518528 vim.cmd.tabclose()
519529 gitlab.review() -- Reopen the reviewer after the server restarts
520530 end)
@@ -630,7 +640,7 @@ reviewer pane (see the gitlab.nvim.review command), otherwise it will error.
630640>lua
631641 require("gitlab").comment()
632642
633- Afer the comment is typed, submit it to Gitlab via the | settings.popup.perform_action |
643+ After the comment is typed, submit it to Gitlab via the | settings.popup.perform_action |
634644keybinding, by default `<leader> l `
635645
636646create_multiline_comment() *gitlab.nvim.create_multiline_comment*
@@ -640,17 +650,17 @@ mode, and will use the currently selected lines.
640650>lua
641651 require("gitlab").create_multiline_comment()
642652
643- Afer the comment is typed, submit it to Gitlab via the | settings.popup.perform_linewise_action |
644- keybinding, by default `<leader> l `
653+ After the comment is typed, submit it to Gitlab via the | settings.popup.perform_linewise_action |
654+ keybinding, by default `<leader> l ` .
645655
646656create_comment_suggestion() *gitlab.nvim.create_comment_suggestion*
647657
648- Opens a popup to create a comment suggestion (aka a comment that makes a committable
649- change suggestion to the currently selected lines).
658+ Opens a popup to create a comment suggestion (aka a comment that makes a committable
659+ change suggestion to the currently selected lines).
650660>lua
651661 require("gitlab").create_multiline_comment()
652662
653- Afer the comment is typed, submit it to Gitlab via the | settings.popup.perform_linewise_action |
663+ After the comment is typed, submit it to Gitlab via the | settings.popup.perform_linewise_action |
654664keybinding, by default | <leader>l |
655665
656666create_mr({opts} ) *gitlab.nvim.create_mr*
@@ -661,7 +671,7 @@ Starts the process of creating an MR for the currently checked out branch.
661671 require("gitlab").create_mr({ target = "main" })
662672 require("gitlab").create_mr({ target = "main", template_file = "my-template.md" })
663673
664- Parameters:
674+ Parameters:
665675 • {opts} Lua table that can be used to skip certain steps in the MR
666676 creation process. If `target` is provided, you will not be prompted for one.
667677 If a template_file is provided, it will be used automatically. Must be
@@ -680,12 +690,12 @@ If there are no diagnostics for the current line, shows a warning message.
680690
681691gitlab.create_note() *gitlab.nvim.create_note*
682692
683- Opens a popup to create a note. Notes are like commments except they are not
693+ Opens a popup to create a note. Notes are like comments except they are not
684694tied to specific changes in an MR.
685695>lua
686696 require("gitlab").create_note()
687697
688- Afer the comment is typed, submit it to Gitlab via the | settings.popup.perform_action |
698+ After the comment is typed, submit it to Gitlab via the | settings.popup.perform_action |
689699keybinding, by default | <leader>l |
690700
691701gitlab.toggle_discussions() *gitlab.nvim.toggle_discussions*
@@ -694,8 +704,8 @@ Toggles visibility of the discussion tree.
694704>lua
695705 require("gitlab").toggle_discussions()
696706
697- Once the discussion tree is open, a number of different keybindings are available
698- for interacting with different discussions. Please see the `settings.discussion_tree`
707+ Once the discussion tree is open, a number of different keybindings are available
708+ for interacting with different discussions. Please see the `settings.discussion_tree`
699709section of the setup call for more information about different keybindings.
700710
701711gitlab.add_assignee() *gitlab.nvim.add_assignee*
@@ -740,7 +750,7 @@ Opens up a popup with information about the pipeline for the current merge reque
740750>lua
741751 require("gitlab").pipeline()
742752
743- To re-trigger failed jobs in the pipeline manually, use the `settings.popup .perform_action` keybinding.
753+ To re-trigger failed jobs in the pipeline manually, use the `settings.popup .perform_action` keybinding.
744754To open the log trace of a job in a new Neovim buffer, use your `settings.popup .perform_linewise_action`
745755keybinding.
746756
0 commit comments