Skip to content

Commit 12e5b68

Browse files
Stattekdribic
authored andcommitted
Fix descriptions of gitsigns keymappings (nvim-lua#1997)
* Fix descriptions of keymappings * Fix capitalization * Prep for next patch(changes will be reverted after) Signed-off-by: Dejan Ribič <[email protected]>
1 parent 3a757ff commit 12e5b68

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

init.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,7 @@ require('lazy').setup({
707707
formatters_by_ft = {
708708
lua = { 'stylua' },
709709
-- Conform can also run multiple formatters sequentially
710-
python = { 'isort', 'black' },
711-
go = { 'goimports' },
712-
zig = { 'zig fmt' },
713-
bash = { 'bash-language-server' },
710+
-- python = { "isort", "black" },
714711
--
715712
-- You can use 'stop_after_first' to run the first available formatter from the list
716713
-- javascript = { "prettierd", "prettier", stop_after_first = true },

lua/kickstart/plugins/gitsigns.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ return {
5050
map('n', '<leader>hb', function() gitsigns.blame_line { full = true } end, { desc = 'git [b]lame line' })
5151
map('n', '<leader>hd', gitsigns.diffthis, { desc = 'git [d]iff against index' })
5252
map('n', '<leader>hD', function() gitsigns.diffthis '@' end, { desc = 'git [D]iff against last commit' })
53-
map('n', '<leader>hQ', function() gitsigns.setqflist 'all' end)
54-
map('n', '<leader>hq', gitsigns.setqflist)
53+
map('n', '<leader>hQ', function() gitsigns.setqflist 'all' end, { desc = 'git hunk [Q]uickfix list (all files in repo)' })
54+
map('n', '<leader>hq', gitsigns.setqflist, { desc = 'git hunk [q]uickfix list (all changes in this file)' })
5555
-- Toggles
5656
map('n', '<leader>tb', gitsigns.toggle_current_line_blame, { desc = '[T]oggle git show [b]lame line' })
57-
map('n', '<leader>tw', gitsigns.toggle_word_diff)
57+
map('n', '<leader>tw', gitsigns.toggle_word_diff, { desc = '[T]oggle git intra-line [w]ord diff' })
5858

5959
-- Text object
6060
map({ 'o', 'x' }, 'ih', gitsigns.select_hunk)

0 commit comments

Comments
 (0)