fix(lualine): use better command for parsing branch name
This commit is contained in:
parent
4cb2047971
commit
85a92af060
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
local branch_name = vim.fn.system("cat .git/HEAD | sed 's/.*\\///' | tr -d '\n'")
|
local branch_name = vim.fn.system("git branch --show-current | tr -d '\n'")
|
||||||
|
|
||||||
local function branch()
|
local function branch()
|
||||||
if branch_name ~= "" then
|
if branch_name ~= "" then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue