From 738aa81b218fff16c07554a26d6fa01da00497fd Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 30 Nov 2024 23:08:13 +0100 Subject: ALE: Use local config for phpcs and phpmd --- lua/plugins/ale.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lua') 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 } -- cgit v1.2.3