added git stuff to neovim config

This commit is contained in:
foxora 2026-03-04 18:08:06 +00:00
parent 86fcbcbfbb
commit 6a3c29ef39
4 changed files with 50 additions and 2 deletions

View file

@ -0,0 +1,24 @@
return {
{
"vim-fugitive",
for_cat = "git",
cmd = { "Git", "Gvdiffsplit" },
},
{
"resolve-nvim",
for_cat = "git",
event = { "BufReadPre", "BufNewFile" },
after = function(plugin)
require("resolve").setup({
default_keymaps = false,
on_conflicts_resolved = function(info)
-- NOTE: am not sure if i wanna stage files automatically
-- local filepath = vim.api.nvim_buf_get_name(info.bufnr)
-- vim.fn.system({ "git", "add", filepath })
-- vim.notify("conflicts resolved :3 file staged yayayayy <3", vim.log.levels.INFO)
vim.notify("conflicts resolved :3", vim.log.levels.INFO)
end,
})
end,
},
}

View file

@ -6,4 +6,5 @@ require("lze").load({
{ import = "plugins.mini-hipatterns" },
{ import = "plugins.format" },
{ import = "plugins.comment" },
{ import = "plugins.git" },
})

View file

@ -111,8 +111,7 @@ in {
};
optionalPlugins = with pkgs.vimPlugins; {
general = [
];
general = [];
ui = [
dressing-nvim
];
@ -152,6 +151,10 @@ in {
comment = [
comment-nvim
];
git = [
resolve-nvim
vim-fugitive
];
lang = {
java = [
nvim-jdtls
@ -225,12 +228,16 @@ in {
qol = true;
telescope = true;
fyler = true;
lsp = true;
completion = true;
treesitter = true;
format = true;
comment = true;
git = false; # not really setup yet
lang = {
lua = true;
nix = true;