diff --git a/lua/nvchad/autocmds.lua b/lua/nvchad/autocmds.lua index 302c33e..03b27de 100644 --- a/lua/nvchad/autocmds.lua +++ b/lua/nvchad/autocmds.lua @@ -48,7 +48,7 @@ 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) - local buftype = vim.api.nvim_buf_get_option(args.buf, "buftype") + local buftype = vim.api.nvim_get_option_value("buftype", { buf = args.buf }) if not vim.g.ui_entered and args.event == "UIEnter" then vim.g.ui_entered = true @@ -64,7 +64,7 @@ autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, { if vim.g.editorconfig then require("editorconfig").config(args.buf) end - end, 0) + end) end end, })