feat(git): add custom status sidebar and diff viewer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user