From d6e56e6c96ce49ef187897afe6b772a9a2391726 Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Thu, 16 May 2024 16:42:42 +0200 Subject: [PATCH] nvim-dap-repl-highlight, gitlab keybindings --- init.lua | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 4567482..89d2c00 100644 --- a/init.lua +++ b/init.lua @@ -904,6 +904,7 @@ require('lazy').setup({ -- Clear virtual text when the debugger does a continue clear_on_continue = true, }}, + {'LiadOz/nvim-dap-repl-highlights', opts = {}}, {'sindrets/diffview.nvim', opts = { -- Use nicer highlighting for diffs enhanced_diff_hl = true, @@ -948,6 +949,10 @@ require('lazy').setup({ }, build = function() require'gitlab.server'.build(true) end, opts = { + attachment_dir = vim.fn.expand('~/Downloads/'), + popup = { + temp_registers = {"p"} + }, discussion_tree = { position = 'bottom', }, @@ -957,15 +962,27 @@ require('lazy').setup({ require'which-key'.register { ['a'] = { name = '+gitlab', - r = {gitlab.review, 'Review'}, + o = {gitlab.review, 'Review'}, s = {gitlab.summary, 'Summary'}, + a = {gitlab.add_assignee, 'Add assignee'}, + r = {gitlab.add_reviewer, 'Add reviewer'}, A = {gitlab.approve, 'Approve'}, - x = {gitlab.open_in_browser, 'Open in browser'}, c = {gitlab.create_comment, 'Comment'}, + n = {gitlab.create_note, 'Note'}, + m = {gitlab.create_mr, 'Create MR'}, + x = {gitlab.open_in_browser, 'Open in browser'}, + p = {gitlab.pipeline, 'Pipeline'}, + q = {gitlab.close_review, 'Close review'}, } } + require'which-key'.register({ + ['a'] = { + c = {gitlab.create_multiline_comment, 'Multiline comment'}, + C = {gitlab.create_comment_suggestion, 'Suggestion'}, + } + }, { mode = "v" }) end}, - {'lewis6991/gitsigns.nvim', opts = { + {'lewis6991/gitsigns.nvim', dependencies = {'folke/which-key.nvim'}, opts = { on_attach = function() local gitsigns = require'gitsigns' vim.keymap.set('n', ']c', gitsigns.next_hunk, {desc = 'Next hunk'})