blob: 7f1d26539e1d0cada16f20703d9ccf5c0da7530a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
return {
{
'dense-analysis/ale',
config = function()
-- Configuration goes here.
local g = vim.g
g.ale_lsp_show_message_severity = 'error'
g.ale_ruby_rubocop_auto_correct_all = 1
g.ale_php_phpcs_standard = vim.fs.find(
'.phpcs.xml',
{upward = true, type = 'file', limit = 1}
)[1]
g.ale_php_phpmd_ruleset = vim.fs.find(
{ '.phpmd.xml', '.phpmdrules.xml' },
{upward = true, type = 'file', limit = 1}
)[1]
g.ale_linters = {
ruby = {'rubocop', 'ruby'},
lua = {'lua_language_server'},
}
end
}
}
|