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-03-10 23:14:37 +00:00
|
|
|
|
2021-05-10 16:27:39 +00:00
|
|
|
M.sections = {lualine_a = {fugitive_branch}, lualine_z = {'location'}}
|
|
|
|
|
|
|
|
M.inactive_sections = vim.deepcopy(M.sections)
|
2021-03-10 23:14:37 +00:00
|
|
|
|
2021-03-15 23:37:46 +00:00
|
|
|
M.filetypes = {'fugitive'}
|
2021-03-10 23:14:37 +00:00
|
|
|
|
|
|
|
return M
|