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 { -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
opts = { opts = {
signs = { -- signs = {
add = { text = '+' }, -- add = { text = '+' },
change = { text = '~' }, -- change = { text = '~' },
delete = { text = '_' }, -- delete = { text = '_' },
topdelete = { text = '' }, -- topdelete = { text = '‾' },
changedelete = { text = '~' }, -- changedelete = { text = '~' },
}, -- },
}, },
}, },
@ -980,7 +980,7 @@ require('lazy').setup({
require 'kickstart.plugins.lint', require 'kickstart.plugins.lint',
require 'kickstart.plugins.autopairs', require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree', 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` -- 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. -- This is the easiest way to modularize your config.

View File

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