config: Add diff and diagnostics components to default config
This commit is contained in:
parent
33defeffb5
commit
fcb61280f2
|
@ -84,7 +84,8 @@ require'lualine'.setup {
|
|||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch'},
|
||||
lualine_b = {'branch', 'diff',
|
||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
|
|
|
@ -48,7 +48,8 @@ Default config~
|
|||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch'},
|
||||
lualine_b = {'branch', 'diff',
|
||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
|
|
|
@ -10,7 +10,8 @@ local config = {
|
|||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch'},
|
||||
lualine_b = {'branch', 'diff',
|
||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
|
|
|
@ -109,7 +109,8 @@ describe('config parsing', function()
|
|||
config = config_module.apply_configuration(config)
|
||||
local lualine_default_sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch'},
|
||||
lualine_b = {'branch', 'diff',
|
||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
|
|
Loading…
Reference in New Issue