gitsigns keymap

This commit is contained in:
_N0x 2022-03-28 16:02:33 +02:00
parent b2fd17c30f
commit 9bd48adb13
2 changed files with 8 additions and 1 deletions

View File

@ -23,7 +23,7 @@ gitsigns.setup {
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = { current_line_blame_opts = {
virt_text = true, virt_text = true,
virt_text_pos = 'right_align', -- 'eol' | 'overlay' | 'right_align' virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 1000, delay = 1000,
ignore_whitespace = false, ignore_whitespace = false,
}, },

View File

@ -97,3 +97,10 @@ keymap("n", "<leader><leader>f", "<cmd>Format<cr>", opts)
-- close buffer -- -- close buffer --
keymap("n", "<leader>q", "<cmd>Bdelete! %d<cr>",opts) keymap("n", "<leader>q", "<cmd>Bdelete! %d<cr>",opts)
-- toggle whitespace --
keymap("n", "<leader>w", "<cmd>set list!<cr>", opts)
-- toggle gitsign line blame --
keymap("n", "<leader>g", "<cmd>Gitsigns toggle_current_line_blame<cr>", opts)