diff --git a/README.md b/README.md index e706e1b..9e45fa6 100644 --- a/README.md +++ b/README.md @@ -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'}, diff --git a/doc/lualine.txt b/doc/lualine.txt index 63e36fa..20c780a 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -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'}, diff --git a/lua/lualine/config.lua b/lua/lualine/config.lua index ad2c189..d6f0891 100644 --- a/lua/lualine/config.lua +++ b/lua/lualine/config.lua @@ -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'}, diff --git a/lua/tests/spec/config_spec.lua b/lua/tests/spec/config_spec.lua index 472b859..eb66c0d 100644 --- a/lua/tests/spec/config_spec.lua +++ b/lua/tests/spec/config_spec.lua @@ -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'},