diff options
Diffstat (limited to 'lua/plugins/ale.lua')
-rw-r--r-- | lua/plugins/ale.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lua/plugins/ale.lua b/lua/plugins/ale.lua new file mode 100644 index 0000000..7f1d265 --- /dev/null +++ b/lua/plugins/ale.lua @@ -0,0 +1,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 + } +} |