Debian Codegraph @

lua/lualine/extensions/fugitive.lua

raw
1 -- Copyright (c) 2020-2021 hoob3rt
2 -- MIT license, see LICENSE for more details.
3 local M = {}
4
5 local function fugitive_branch()
6 local icon = '' -- e0a0
7 return icon .. ' ' .. vim.fn.FugitiveHead()
8 end
9
10 M.sections = {
11 lualine_a = { fugitive_branch },
12 lualine_z = { 'location' },
13 }
14
15 M.filetypes = { 'fugitive' }
16
17 return M