aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/lsp/null-ls.lua4
-rw-r--r--lua/alpha/snips/ft/php.lua8
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 }),