2021-03-10 23:14:37 +00:00
|
|
|
-- Copyright (c) 2020-2021 hoob3rt
|
|
|
|
-- MIT license, see LICENSE for more details.
|
|
|
|
local M = {}
|
|
|
|
|
2021-05-10 16:27:39 +00:00
|
|
|
local function fugitive_branch()
|
2021-05-11 12:55:18 +00:00
|
|
|
local icon = '' -- e0a0
|
|
|
|
return icon .. ' ' .. vim.fn.FugitiveHead()
|
2021-05-10 16:27:39 +00:00
|
|
|
end
|
2021-08-26 19:01:42 +00:00
|
|
|
local empty = {function() return ' ' end, left_padding=0, right_padding=0}
|
2021-03-10 23:14:37 +00:00
|
|
|
|
2021-08-26 19:01:42 +00:00
|
|
|
|
|
|
|
M.sections = {
|
|
|
|
lualine_a = {fugitive_branch},
|
|
|
|
lualine_c = {empty},
|
|
|
|
lualine_z = {'location'}
|
|
|
|
}
|
2021-05-10 16:27:39 +00:00
|
|
|
|
2021-03-15 23:37:46 +00:00
|
|
|
M.filetypes = {'fugitive'}
|
2021-03-10 23:14:37 +00:00
|
|
|
|
|
|
|
return M
|