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 ------- 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 lua/config/utils.lua (limited to 'lua/config') 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 -- cgit v1.2.3