diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmal.com> | 2023-01-26 09:02:43 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmal.com> | 2023-01-26 09:02:43 +0100 |
| commit | 1cede2a27c689e69692c15528e442598aaa4e1f6 (patch) | |
| tree | c8f56327f12ed29b2f8c814f5fc314785fb49993 /lua | |
| parent | 286ed241d3833d419886c49f9d32a4ce9dbaaeba (diff) | |
| download | nvim-conf-1cede2a27c689e69692c15528e442598aaa4e1f6.tar.gz nvim-conf-1cede2a27c689e69692c15528e442598aaa4e1f6.zip | |
feat: use the new fallback from lazy, remove local function
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/lazy.lua | 3 | ||||
| -rw-r--r-- | lua/config/utils.lua | 7 | ||||
| -rw-r--r-- | lua/plugins/laravel.lua | 2 |
3 files changed, 3 insertions, 9 deletions
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 = { {"<leader>pa", ":Artisan<cr>"}, }, - dev = require('config.utils').use_local("laravel.nvim"), + dev = true, config = function() require("laravel").setup() require("telescope").load_extension("laravel") |