cryoline.lua (364B)
1 if not pcall(require, 'cryoline') then return end 2 3 require('cryoline').config { 4 ft = { fugitive = '%{FugitiveStatusline()}' }, 5 line = function() 6 local git_head = vim.fn.FugitiveHead() 7 local branch = '' 8 if #git_head ~= 0 then branch = '[' .. git_head .. ']' end 9 local line = '%f %h%m%r' .. branch .. '%=%-14.(%l,%c%V%)' 10 return line 11 end, 12 }