fix(nvim-tree): fix git head call

This commit is contained in:
2026-04-30 16:01:42 +02:00
parent 84cfed05e0
commit bf9cc73626
+1 -1
View File
@@ -111,7 +111,7 @@ require("nvim-tree").setup({
full_name = true, full_name = true,
root_folder_label = function(path) root_folder_label = function(path)
local label = vim.fn.fnamemodify(path, ":~") local label = vim.fn.fnamemodify(path, ":~")
local git_head = require("git").head(path) local git_head = require("git.repo").head(path)
if git_head then if git_head then
label = label .. ("  %s"):format(git_head) label = label .. ("  %s"):format(git_head)
end end