From b3b19c488dfd8688fb3813f553b509cd87ad8462 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Wed, 18 Jan 2023 12:09:21 +0100 Subject: feat: improve lazy configuration on how loading plugins --- lua/alpha/plugins/laravel.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lua/alpha/plugins/laravel.lua (limited to 'lua/alpha/plugins/laravel.lua') 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 = {{"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", "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 +} -- cgit v1.2.3