From 1cede2a27c689e69692c15528e442598aaa4e1f6 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Thu, 26 Jan 2023 09:02:43 +0100 Subject: feat: use the new fallback from lazy, remove local function --- lua/config/lazy.lua | 3 ++- lua/config/utils.lua | 7 ------- lua/plugins/laravel.lua | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 lua/config/utils.lua (limited to 'lua') diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 709eab0..8c38336 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -17,7 +17,8 @@ require("lazy").setup({ }, checker = { enabled = true, notify = false }, dev = { - path = "~/code/plugins" + path = "~/code/plugins", + fallback = true, }, performance = { rtp = { diff --git a/lua/config/utils.lua b/lua/config/utils.lua deleted file mode 100644 index ebb3eeb..0000000 --- a/lua/config/utils.lua +++ /dev/null @@ -1,7 +0,0 @@ -local M = {} - -M.use_local = function (name) - return vim.fn.isdirectory(vim.fn.expand("~/code/plugins/").. name) == 1 -end - -return M diff --git a/lua/plugins/laravel.lua b/lua/plugins/laravel.lua index d3de5d8..4f17ceb 100644 --- a/lua/plugins/laravel.lua +++ b/lua/plugins/laravel.lua @@ -8,7 +8,7 @@ return { keys = { {"pa", ":Artisan"}, }, - dev = require('config.utils').use_local("laravel.nvim"), + dev = true, config = function() require("laravel").setup() require("telescope").load_extension("laravel") -- cgit v1.2.3