17 lines
369 B
Lua
Raw Normal View History

2021-03-11 00:14:37 +01:00
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local M = {}
local function fugitive_branch()
local icon = '' -- e0a0
return icon .. ' ' .. vim.fn.FugitiveHead()
end
2021-03-11 00:14:37 +01:00
M.sections = {lualine_a = {fugitive_branch}, lualine_z = {'location'}}
M.inactive_sections = vim.deepcopy(M.sections)
2021-03-11 00:14:37 +01:00
M.filetypes = {'fugitive'}
2021-03-11 00:14:37 +01:00
return M