From 53df5e175aede4259e7b3dfb0e67936c64dafee7 Mon Sep 17 00:00:00 2001 From: Hassan Ait Nacer <108420918+hassanaitnacer@users.noreply.github.com> Date: Thu, 2 May 2024 00:46:58 +0100 Subject: [PATCH] use pre-defined local variable autocmd (#2816) --- lua/nvchad/autocmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvchad/autocmds.lua b/lua/nvchad/autocmds.lua index 4583e42..302c33e 100644 --- a/lua/nvchad/autocmds.lua +++ b/lua/nvchad/autocmds.lua @@ -44,7 +44,7 @@ autocmd("BufWritePost", { }) -- user event that loads after UIEnter + only if file buf is there -vim.api.nvim_create_autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, { +autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, { group = vim.api.nvim_create_augroup("NvFilePost", { clear = true }), callback = function(args) local file = vim.api.nvim_buf_get_name(args.buf)