feat: added neogit

This commit is contained in:
2024-06-02 08:19:40 +02:00
parent 3edec00b3b
commit 76f158c76b
3 changed files with 45 additions and 1 deletions

View File

@@ -1,6 +1,32 @@
return {
{
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim", -- required
"sindrets/diffview.nvim", -- optional - Diff integration
"nvim-telescope/telescope.nvim", -- optional
},
keys = {
{
"<leader>gs",
":Neogit<CR>",
desc = "Neogit"
},
},
opts = {
signs = {
item = { ">", "v" },
section = { ">", "v" },
},
mappings = {
status = {
["="] = "Toggle",
["<tab>"] = false,
},
},
},
config = true,
},
{
"echasnovski/mini.diff",

View File

@@ -22,6 +22,23 @@ return {
vim.api.nvim_set_hl(0, "PmenuSbar", { link = "Normal" })
vim.api.nvim_set_hl(0, "CmpPmenuBorder", { fg = catppuccin_colors.surface2 })
vim.api.nvim_set_hl(0, "MiniIndentscopeSymbol", { fg = catppuccin_colors.surface2 })
vim.api.nvim_set_hl(0, "NeogitHunkHeaderCursor", { fg = catppuccin_colors.blue, bg = "none", bold = true })
vim.api.nvim_set_hl(0, "NeogitHunkHeader", { fg = catppuccin_colors.blue, bg = "none", bold = true })
vim.api.nvim_set_hl(0, "NeogitHunkHeaderHighlight", { link = "NeogitHunkHeader" })
vim.api.nvim_set_hl(0, "NeogitDiffAddHighlight", { fg = catppuccin_colors.green, bg = "none" })
vim.api.nvim_set_hl(0, "NeogitDiffDeleteHighlight", { fg = catppuccin_colors.red, bg = "none" })
vim.api.nvim_set_hl(0, "NeogitDiffContextHighlight", { link = "Normal" })
vim.api.nvim_set_hl(0, "NeogitDiffContextCursor", { link = "Normal" })
vim.api.nvim_set_hl(0, "NeogitDiffAddCursor", { link = "NeogitDiffAddHighlight" })
vim.api.nvim_set_hl(0, "NeogitDiffDeleteCursor", { link = "NeogitDiffDeleteHighlight" })
vim.api.nvim_set_hl(0, "NeogitDiffHeader", { fg = catppuccin_colors.blue, bg = "none", bold = true })
vim.api.nvim_set_hl(0, "NeogitDiffAdd", { link = "NeogitDiffAddHighlight" })
vim.api.nvim_set_hl(0, "NeogitDiffDelete", { link = "NeogitDiffDeleteHighlight" })
vim.api.nvim_set_hl(0, "NeogitDiffContext", { link = "NeogitDiffContextHighlight" })
vim.api.nvim_set_hl(0, "NeogitCommitViewHeader", { fg = catppuccin_colors.blue, bg = "none", bold = true })
end
},
}