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)