From f303013a15c3a0501bd43bd3466b4d79f5a7f22f Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 14 Jun 2023 12:02:26 +0200 Subject: [PATCH] adjusted lazy options --- lua/config/lazy.lua | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index cee64af..06ad74e 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -1,14 +1,25 @@ -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release + 'git', + 'clone', + '--filter=blob:none', + 'https://github.com/folke/lazy.nvim.git', + '--branch=stable', -- latest stable release lazypath, }) end vim.opt.rtp:prepend(lazypath) -require('lazy').setup('plugins', {}) +require('lazy').setup({ + spec = { + import = 'plugins' + }, + checker = { + -- automatically check for plugin updates + enabled = false, + concurrency = nil, ---@type number? set to 1 to check for updates very slowly + notify = false, -- get a notification when new updates are found + frequency = 3600, -- check for updates every hour + }, +})