feat(git): add custom status sidebar and diff viewer

This commit is contained in:
2026-04-27 10:44:59 +02:00
parent bc93d6e2f7
commit 5a3e39574d
8 changed files with 1111 additions and 115 deletions
+2 -2
View File
@@ -111,8 +111,8 @@ require("nvim-tree").setup({
full_name = true,
root_folder_label = function(path)
local label = vim.fn.fnamemodify(path, ":~")
local git_head = vim.fn.FugitiveHead()
if git_head ~= "" then
local git_head = require("git").head(path)
if git_head then
label = label .. ("  %s"):format(git_head)
end
return label