mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
nvim: php: add phpstan via none-ls
This commit is contained in:
parent
3deb8e99ac
commit
db35228366
1 changed files with 16 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue