From 7d5683672cdf1d73914b637b7266e5602f3ac34b Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 4 Sep 2022 22:47:02 +0200 Subject: some improvements --- after/plugin/laravel.lua | 5 +++++ lua/alpha/snips/ft/php.lua | 1 + plugin/test.lua | 1 + 3 files changed, 7 insertions(+) diff --git a/after/plugin/laravel.lua b/after/plugin/laravel.lua index bfe193d..a45418f 100644 --- a/after/plugin/laravel.lua +++ b/after/plugin/laravel.lua @@ -4,3 +4,8 @@ if not ok then end laravel.setup() + +vim.keymap.set("n", "ac", function() + require("laravel.artisan").clean_cmd_list_cache() + require("notify").notify("Artisan cmd list cache clean", "info", { title = "Laravel.nvim" }) +end, { noremap = true }) diff --git a/lua/alpha/snips/ft/php.lua b/lua/alpha/snips/ft/php.lua index 27993d8..41272a7 100644 --- a/lua/alpha/snips/ft/php.lua +++ b/lua/alpha/snips/ft/php.lua @@ -33,6 +33,7 @@ end local namespace = function() local dir = vim.fn.expand("%:h") + -- replace this since I don't want to use this composer local autoloads = vim.call("composer#query", "autoload.psr-4") if autoloads == nil then return (dir:gsub("^%l", string.upper)) diff --git a/plugin/test.lua b/plugin/test.lua index 2ba25dd..110c5c2 100644 --- a/plugin/test.lua +++ b/plugin/test.lua @@ -3,6 +3,7 @@ local hydra = require("hydra") vim.g["test#preserve_screen"] = 1 vim.cmd([[ + let test#php#pest#executable = './vendor/bin/sail test' let test#strategy = 'neovim' let test#neovim#term_position = 'vert' let g:test#preserve_screen = 1 -- cgit v1.2.3