From d693496fe91110e71c6c6f6e9ee4c0224cafbb67 Mon Sep 17 00:00:00 2001 From: Ralph Date: Fri, 5 Apr 2024 00:02:59 -0700 Subject: [PATCH] syntax fix --- lua/config/autocmds.lua | 4 ++-- lua/config/options.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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