<commit_before>
--" Show history of selected lines
--vnoremap <silent> <leader>gl :<C-U>exe '!git log -L' line("'<").','.line("'>").':'.expand('%')<CR>
--" Open diffs from the fugitive index with dt in a new tab
--autocmd User FugitiveIndex nmap <buffer> dt :Gtabedit <Plug><cfile><Bar>Gvdiffsplit!<CR>
--" Pull in changes from left side
--nnoremap <silent> <leader>df :diffget //2<CR>
--" Pull in changes from right side
--nnoremap <silent> <leader>dj :diffget //3<CR>
--" Update diff
--nnoremap <silent> <leader>du :diffupdate<CR><commit_msg>Added fugitive mappings<commit_after>local map = vim.keymap.set
local default_options = {noremap = true, silent = true}

vim.api.nvim_create_autocmd('FileType', {
  pattern = 'fugitive',
  callback = function()
    map('n', 'dt', ':Gtabedit <Plug><cfile><Bar>Gvdiffsplit!<CR>', {noremap = false, silent = true})
  end
})
-- Pull in changes from left side
map('n', '<leader>df', ':diffget //2<CR>', default_options)
-- Pull in changes from right side
map('n', '<leader>dj', ':diffget //3<CR>', default_options)
-- Update diff
map('n', '<leader>du', ':diffupdate<CR>', default_options)
{'fraction_non_alphanumeric': 0.19343389529724933, 'fraction_numerical': 0.00354924578527063, 'mean_word_length': 5.032085561497326, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '95355', 'n_tokens_mistral': 423, 'n_tokens_neox': 397, 'n_words': 114}