aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-03-18 11:08:02 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-03-18 11:08:02 +0100
commitc8c7524c5718879adf06f8df5e85f4d6ed7129b7 (patch)
tree1a7d294ce993f57ba941d97ec28b86186e772050 /lua/alpha
parent1bc4ba22122315e2434d2bee845b9c56be5ddf2c (diff)
downloadnvim-conf-c8c7524c5718879adf06f8df5e85f4d6ed7129b7.tar.gz
nvim-conf-c8c7524c5718879adf06f8df5e85f4d6ed7129b7.zip
feat: some updates
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/lsp/null-ls.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/alpha/lsp/null-ls.lua b/lua/alpha/lsp/null-ls.lua
index 35fbb6b..f95c443 100644
--- a/lua/alpha/lsp/null-ls.lua
+++ b/lua/alpha/lsp/null-ls.lua
@@ -17,6 +17,10 @@ null_ls.setup {
null_ls.builtins.diagnostics.phpstan.with {
to_temp_file = false,
method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
+ command = "./vendor/bin/phpstan",
+ condition = function ()
+ return vim.fn.findfile("vendor/bin/phpstan") ~= ""
+ end
},
null_ls.builtins.diagnostics.phpcs.with {
method = null_ls.methods.DIAGNOSTICS_ON_SAVE,