diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2023-01-18 12:09:21 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2023-01-18 12:09:21 +0100 |
| commit | b3b19c488dfd8688fb3813f553b509cd87ad8462 (patch) | |
| tree | ca7b243912e5904f6ea49e28789974d006de285f /lua/alpha/plugins/laravel.lua | |
| parent | a04f9cd914055244f29e9ff17aa7a723f5db2405 (diff) | |
| download | nvim-conf-b3b19c488dfd8688fb3813f553b509cd87ad8462.tar.gz nvim-conf-b3b19c488dfd8688fb3813f553b509cd87ad8462.zip | |
feat: improve lazy configuration on how loading plugins
Diffstat (limited to 'lua/alpha/plugins/laravel.lua')
| -rw-r--r-- | lua/alpha/plugins/laravel.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/alpha/plugins/laravel.lua b/lua/alpha/plugins/laravel.lua new file mode 100644 index 0000000..0082653 --- /dev/null +++ b/lua/alpha/plugins/laravel.lua @@ -0,0 +1,25 @@ +return { + "adalessa/laravel.nvim", + dependencies = { + "rcarriga/nvim-notify", + "adalessa/composer.nvim", + }, + cmd = {"Sali", "Artisan", "Composer"}, + keys = {{"<leader>pa", function () + require("telescope").extensions.laravel.laravel() + end}}, + config = function() + 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 }) + + require("telescope").load_extension("laravel") + end +} |