1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: php: add phpstan via none-ls

This commit is contained in:
Henrik Hautakoski 2024-11-11 08:50:31 +01:00
parent 3deb8e99ac
commit db35228366

View file

@ -103,6 +103,22 @@ return {
servers = lspservers
},
},
{
"nvimtools/none-ls.nvim",
opts = function ()
local null_ls = require("null-ls")
local methods = require("null-ls.methods")
return {
sources = {
null_ls.builtins.diagnostics.phpstan.with({
command = "./vendor/bin/phpstan",
method = methods.internal.DIAGNOSTICS_ON_SAVE,
to_temp_file = false
})
}
}
end,
},
-- Testing
{
"nvim-neotest/neotest",