Enable gitsigns keymaps

This commit is contained in:
Levente Krizsán 2024-09-03 08:49:27 +02:00
parent e7a9bf5949
commit 94354c03b0
2 changed files with 10 additions and 10 deletions

View File

@ -249,13 +249,13 @@ require('lazy').setup({
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
},
-- signs = {
-- add = { text = '+' },
-- change = { text = '~' },
-- delete = { text = '_' },
-- topdelete = { text = '‾' },
-- changedelete = { text = '~' },
-- },
},
},
@ -980,7 +980,7 @@ require('lazy').setup({
require 'kickstart.plugins.lint',
require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree',
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.

View File

@ -89,10 +89,10 @@ return {
-- Use if you want more granular movements
-- Make it even more gradual by adding multiple queries and regex.
goto_next = {
[']c'] = { query = '@conditional.outer', desc = 'Next [C]onditional' },
[']d'] = { query = '@conditional.outer', desc = 'Next [D]ecision (Conditional)' },
},
goto_previous = {
['[c'] = { query = '@conditional.outer', desc = 'Previous [C]onditional]' },
['[d'] = { query = '@conditional.outer', desc = 'Previous [D]ecision (Conditional)' },
},
},
},