aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/alpha/lsp/null-ls.lua4
-rw-r--r--lua/plugins/laravel.lua6
2 files changed, 7 insertions, 3 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,
diff --git a/lua/plugins/laravel.lua b/lua/plugins/laravel.lua
index a67f0fd..055ef9a 100644
--- a/lua/plugins/laravel.lua
+++ b/lua/plugins/laravel.lua
@@ -4,10 +4,10 @@ return {
"rcarriga/nvim-notify",
"nvim-telescope/telescope.nvim",
},
- cmd = { "Sail", "Artisan", "Composer", "Npm" },
+ cmd = { "Sail", "Artisan", "Composer", "Npm", "Laravel" },
keys = {
- { "<leader>la", ":Artisan<cr>" },
- { "<leader>lr", ":Routes<cr>" },
+ { "<leader>la", ":Laravel artisan<cr>" },
+ { "<leader>lr", ":Laravel routes<cr>" },
},
event = { "VeryLazy" },
config = function()