fix(nvim-tree): fix git head call
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user