<commit_before>require("gitsigns").setup(
{
    watch_gitdir = {
      interval = 100
    },
    signs = {
      add = { hl = "GitGutterAdd" },
      change = { hl = "GitGutterChange" },
      delete = { hl = "GitGutterDelete" },
      topdelete = { hl = "GitGutterDelete" },
      changedelete = { hl = "GitGutterChangeDelete" }
    }
}
)

vim.keymap.set("n", "<leader>gs", "<cmd>vertical Git<cr>", { silent = true})
vim.keymap.set("n", "<leader>gh", "<cmd>diffget //2<cr>", { silent = true})
vim.keymap.set("n", "<leader>gl", "<cmd>diffget //3<cr>", { silent = true})
vim.keymap.set("n", "<leader>gb", "<cmd>GBrowse!<cr>", { silent = true })
vim.keymap.set("v", "<leader>gb", "<cmd>'<,'>GBrowse!<CR>", { silent = true })

require("neogit").setup(
{
    integrations = {
      diffview = true
    }
}
)
<commit_msg>Open Neogit instead of fugitive for diff view<commit_after>require("gitsigns").setup(
{
    watch_gitdir = {
      interval = 100
    },
    signs = {
      add = { hl = "GitGutterAdd" },
      change = { hl = "GitGutterChange" },
      delete = { hl = "GitGutterDelete" },
      topdelete = { hl = "GitGutterDelete" },
      changedelete = { hl = "GitGutterChangeDelete" }
    }
}
)

local neogit = require("neogit")

neogit.setup(
  {
    integrations = {
      diffview = true
    }
  }
)

vim.keymap.set("n", "<leader>gs", function() neogit.open({ kind = "vsplit" })  end, { silent = true})
vim.keymap.set("n", "<leader>gh", "<cmd>diffget //2<cr>", { silent = true})
vim.keymap.set("n", "<leader>gl", "<cmd>diffget //3<cr>", { silent = true})
vim.keymap.set("n", "<leader>gb", "<cmd>GBrowse!<cr>", { silent = true })
vim.keymap.set("v", "<leader>gb", "<cmd>'<,'>GBrowse!<CR>", { silent = true })

{'fraction_non_alphanumeric': 0.22202797202797203, 'fraction_numerical': 0.005827505827505828, 'mean_word_length': 3.3578680203045685, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '3845935', 'n_tokens_mistral': 701, 'n_tokens_neox': 665, 'n_words': 117}