diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/laravel.lua | 10 | ||||
| -rw-r--r-- | lua/alpha/plugins.lua | 6 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lua/alpha/laravel.lua b/lua/alpha/laravel.lua new file mode 100644 index 0000000..99ba41c --- /dev/null +++ b/lua/alpha/laravel.lua @@ -0,0 +1,10 @@ +local laravel = require("laravel") +local artisan = require("laravel.artisan") +local notify = require("notify") + +laravel.setup() + +vim.keymap.set("n", "<leader>ac", function() + artisan.clean_cmd_list_cache() + notify.notify("Artisan cmd list cache clean", "info", { title = "Laravel.nvim" }) +end, { noremap = true }) diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua index 7d01f99..9043b1e 100644 --- a/lua/alpha/plugins.lua +++ b/lua/alpha/plugins.lua @@ -292,7 +292,11 @@ return require("packer").startup(function(use) -- Local plugins can be included local_use("telescope-projectionist.nvim") local_use("php-code-actions.nvim") - local_use("laravel.nvim") + local_use("laravel.nvim", nil, { + config = function () + require('alpha.laravel') + end, + }) local_use("composer.nvim") local_use("neotest-phpunit") end) |