2021-03-11 00:14:37 +01:00
|
|
|
-- Copyright (c) 2020-2021 hoob3rt
|
|
|
|
-- MIT license, see LICENSE for more details.
|
|
|
|
local M = {}
|
|
|
|
|
2021-05-10 18:27:39 +02:00
|
|
|
local function fugitive_branch()
|
2021-05-11 08:55:18 -04:00
|
|
|
local icon = '' -- e0a0
|
|
|
|
return icon .. ' ' .. vim.fn.FugitiveHead()
|
2021-05-10 18:27:39 +02:00
|
|
|
end
|
2021-08-27 01:01:42 +06:00
|
|
|
|
|
|
|
M.sections = {
|
2021-09-04 00:28:20 +06:00
|
|
|
lualine_a = { fugitive_branch },
|
|
|
|
lualine_z = { 'location' },
|
2021-08-27 01:01:42 +06:00
|
|
|
}
|
2021-05-10 18:27:39 +02:00
|
|
|
|
2021-09-04 00:28:20 +06:00
|
|
|
M.filetypes = { 'fugitive' }
|
2021-03-11 00:14:37 +01:00
|
|
|
|
|
|
|
return M
|