commit 9474a7d3e3947c6cde2fde8a76926024de4287a3 from: Andre M. Bertachini date: Sun May 18 12:40:12 2025 UTC Purge h binds commit - 926b0d95b83f79c8520a8aa7736f70d7e7aaf302 commit + 9474a7d3e3947c6cde2fde8a76926024de4287a3 blob - 3477ad3eac3f532c14b95f0a0b1d874b37a1eaf4 blob + 2dc964bbda3cb36ba407e012b9e7ad2a0d52270f --- lua/config/keymaps.lua +++ lua/config/keymaps.lua @@ -154,15 +154,9 @@ vim.api.nvim_create_autocmd('BufEnter', { gitsigns.reset_hunk({ vim.fn.line('.'), vim.fn.line('v') }) end, 'git reset hunk', 'v') - gs_map('hs', gitsigns.stage_hunk, 'git rtage hunk') - gs_map('hr', gitsigns.reset_hunk, 'git reset hunk') - gs_map('hS', gitsigns.stage_buffer, 'git stage buffer') - gs_map('hu', gitsigns.undo_stage_hunk, 'git undo stage hunk') - gs_map('hR', gitsigns.reset_buffer, 'git reset buffer') - gs_map('hp', gitsigns.preview_hunk, 'git preview hunk') - gs_map('hb', gitsigns.blame_line, 'git blame line') - gs_map('hd', gitsigns.diffthis, 'git diff against index') - gs_map('hD', function() + gs_map('gb', gitsigns.blame_line, 'git blame line') + gs_map('gd', gitsigns.diffthis, 'git diff against index') + gs_map('gD', function() gitsigns.diffthis('@') end, 'git diff against last commit') blob - f00b780e2e4a688a10213b68c19152355e4497ba blob + 87e3069f119148666208ef3918f258d8966ea823 --- lua/plugins/conform.lua +++ lua/plugins/conform.lua @@ -6,6 +6,7 @@ return { notify_on_error = true, formatters_by_ft = { lua = { 'stylua' }, + go = { 'gofmt' }, typescript = { 'prettier' }, javascript = { 'prettier' }, },