-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlualine.lua
29 lines (28 loc) · 859 Bytes
/
lualine.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
return {
'nvim-lualine/lualine.nvim',
config = function()
local function sf_status()
local target_org = require 'sf'.get_target_org()
local covered_percent = require 'sf'.covered_percent()
return target_org .. "(" .. covered_percent .. ")"
end
require('lualine').setup {
options = {
icons_enabled = false,
-- theme = 'gruvbox',
component_separators = '|',
section_separators = '',
},
sections = {
lualine_a = { 'mode' },
-- lualine_b = { 'branch' },
lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_c = { 'filename', sf_status },
lualine_x = { 'encoding', 'filetype' },
-- lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_y = { 'progress' },
lualine_z = { 'location' }
}
}
end
}