diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 32541dc..3761a61 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -9,8 +9,8 @@ end vim.api.nvim_create_autocmd("VimEnter", { group = augroup("autoupdate"), callback = function() - if require("lazy.status").has_updates then - require("lazy").update({ show = true }) + if require("lazy.status").has_updates() then + require("lazy").update({ show = true, }) end end, }) diff --git a/lua/config/options.lua b/lua/config/options.lua index eaafdfa..eb2851d 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -1,7 +1,6 @@ -- Options are automatically loaded before lazy.nvim startup -- Add any additional options here -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua - local g, opt = vim.g, vim.opt g.autoformat = false -- disable LazyVim autoformat on save