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'},
|
||||||
|
@ -319,7 +319,7 @@ sections = {
|
||||||
'diagnostics',
|
'diagnostics',
|
||||||
-- table of diagnostic sources, available sources:
|
-- table of diagnostic sources, available sources:
|
||||||
-- 'nvim_lsp', 'coc', 'ale', 'vim_lsp'
|
-- 'nvim_lsp', 'coc', 'ale', 'vim_lsp'
|
||||||
-- Or a function that returns a table like
|
-- Or a function that returns a table like
|
||||||
-- {error=error_cnt, warning=warn_cnt, info=info_cnt, hint=hint_cnt}
|
-- {error=error_cnt, warning=warn_cnt, info=info_cnt, hint=hint_cnt}
|
||||||
sources = {},
|
sources = {},
|
||||||
-- displays diagnostics from defined severity
|
-- displays diagnostics from defined severity
|
||||||
|
|
|
@ -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'},
|
||||||
|
@ -250,7 +250,7 @@ Component specific local options~
|
||||||
'diagnostics',
|
'diagnostics',
|
||||||
-- table of diagnostic sources, available sources:
|
-- table of diagnostic sources, available sources:
|
||||||
-- 'nvim_lsp', 'coc', 'ale', 'vim_lsp'
|
-- 'nvim_lsp', 'coc', 'ale', 'vim_lsp'
|
||||||
-- Or a function that returns a table like
|
-- Or a function that returns a table like
|
||||||
-- {error=error_cnt, warning=warn_cnt, info=info_cnt, hint=hint_cnt}
|
-- {error=error_cnt, warning=warn_cnt, info=info_cnt, hint=hint_cnt}
|
||||||
sources = {},
|
sources = {},
|
||||||
-- displays diagnostics from defined severity
|
-- displays diagnostics from defined severity
|
||||||
|
|
|
@ -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