diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-04 09:14:49 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-04 09:15:10 +0200 |
| commit | ee1d1b1d7ae0761b008a541a727258508dde847f (patch) | |
| tree | c2baaf82561db810a9164df6f161611d36477d37 /lua | |
| parent | cf9605f7a01ef90050df2f5aafa3b89db492604f (diff) | |
| download | nvim-conf-ee1d1b1d7ae0761b008a541a727258508dde847f.tar.gz nvim-conf-ee1d1b1d7ae0761b008a541a727258508dde847f.zip | |
feat(php) fix phpstan for symfony, add new snippet
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/lsp/null-ls.lua | 4 | ||||
| -rw-r--r-- | lua/alpha/snips/ft/php.lua | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lua/alpha/lsp/null-ls.lua b/lua/alpha/lsp/null-ls.lua index f95c443..0a4443a 100644 --- a/lua/alpha/lsp/null-ls.lua +++ b/lua/alpha/lsp/null-ls.lua @@ -17,9 +17,9 @@ null_ls.setup { null_ls.builtins.diagnostics.phpstan.with { to_temp_file = false, method = null_ls.methods.DIAGNOSTICS_ON_SAVE, - command = "./vendor/bin/phpstan", + command = "./bin/phpstan", condition = function () - return vim.fn.findfile("vendor/bin/phpstan") ~= "" + return vim.fn.findfile("bin/phpstan") ~= "" end }, null_ls.builtins.diagnostics.phpcs.with { diff --git a/lua/alpha/snips/ft/php.lua b/lua/alpha/snips/ft/php.lua index b930cb6..72936d8 100644 --- a/lua/alpha/snips/ft/php.lua +++ b/lua/alpha/snips/ft/php.lua @@ -94,6 +94,14 @@ M.op = fmt( } ) +M.iop = fmt( + [[$this->{} = $this->prophesize({}::class);]], + { + i(1, ""), + i(2, ""), + } +) + M.arg = fmt([[{} ${}]], { i(1, "Type"), d(2, var_name, { 1 }), |