config: Add diff and diagnostics components to default config

This commit is contained in:
shadmansaleh 2021-08-17 00:30:33 +06:00
parent 33defeffb5
commit fcb61280f2
4 changed files with 8 additions and 4 deletions

View File

@ -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'},

View File

@ -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'},

View File

@ -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'},

View File

@ -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'},