perf: remove ale diagnostics source from default config
It is too expensive to check if ale is installed or not when ale is not instaled . It is not that expensive when is is installed. So anyone useing ale can just add ale to sources option in their config.
This commit is contained in:
parent
d4f83afa7f
commit
cfb6e3db14
|
@ -87,7 +87,7 @@ require'lualine'.setup {
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff',
|
lualine_b = {'branch', 'diff',
|
||||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
{'diagnostics', sources={'nvim_lsp', 'coc'}}},
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'progress'},
|
||||||
|
|
|
@ -49,7 +49,7 @@ Default config~
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff',
|
lualine_b = {'branch', 'diff',
|
||||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
{'diagnostics', sources={'nvim_lsp', 'coc'}}},
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'progress'},
|
||||||
|
|
|
@ -11,7 +11,7 @@ local config = {
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff',
|
lualine_b = {'branch', 'diff',
|
||||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
{'diagnostics', sources={'nvim_lsp', 'coc'}}},
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'progress'},
|
||||||
|
|
|
@ -110,7 +110,7 @@ describe('config parsing', function()
|
||||||
local lualine_default_sections = {
|
local lualine_default_sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff',
|
lualine_b = {'branch', 'diff',
|
||||||
{'diagnostics', sources={'nvim_lsp', 'coc', 'ale'}}},
|
{'diagnostics', sources={'nvim_lsp', 'coc'}}},
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'progress'},
|
||||||
|
|
Loading…
Reference in New Issue