diff options
Diffstat (limited to 'lua/plugins')
-rw-r--r-- | lua/plugins/ale.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lua/plugins/ale.lua b/lua/plugins/ale.lua index 36bba77..7f1d265 100644 --- a/lua/plugins/ale.lua +++ b/lua/plugins/ale.lua @@ -5,11 +5,22 @@ return { -- 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'} + lua = {'lua_language_server'}, } end } |