nvim-dap-repl-highlight, gitlab keybindings
This commit is contained in:
parent
4a332b71a7
commit
d6e56e6c96
23
init.lua
23
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 {
|
||||
['<Leader>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({
|
||||
['<Leader>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'})
|
||||
|
|
Loading…
Reference in a new issue