From c4e52e272292c254b91b8e298a7f82585fc37c96 Mon Sep 17 00:00:00 2001 From: long-crypto <175532236+long-crypto@users.noreply.github.com> Date: Wed, 24 Jul 2024 01:51:43 +0000 Subject: [PATCH] Add autoupdate --- init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1f1e029b..c6940dbc 100644 --- a/init.lua +++ b/init.lua @@ -223,6 +223,14 @@ vim.opt.rtp:prepend(lazypath) -- To update plugins you can run -- :Lazy update -- + +--Autoupdate +vim.api.nvim_create_autocmd('VimEnter', { + callback = function() + require('lazy').update { show = false } + end, +}) + -- NOTE: Here is where you install your plugins. require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). @@ -552,7 +560,7 @@ require('lazy').setup({ }) end - -- The following code creates a keymap to toggle inlay hints in your + -- The following autocommand is used to enable inlay hints in your -- code, if the language server you are using supports them -- -- This may be unwanted, since they displace some of your code