mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-10 07:10:44 +00:00
rm depreceated function: buf_get_option
This commit is contained in:
parent
7bfc159f63
commit
e937d2cae0
@ -48,7 +48,7 @@ autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
|
|||||||
group = vim.api.nvim_create_augroup("NvFilePost", { clear = true }),
|
group = vim.api.nvim_create_augroup("NvFilePost", { clear = true }),
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
local file = vim.api.nvim_buf_get_name(args.buf)
|
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
|
if not vim.g.ui_entered and args.event == "UIEnter" then
|
||||||
vim.g.ui_entered = true
|
vim.g.ui_entered = true
|
||||||
@ -64,7 +64,7 @@ autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
|
|||||||
if vim.g.editorconfig then
|
if vim.g.editorconfig then
|
||||||
require("editorconfig").config(args.buf)
|
require("editorconfig").config(args.buf)
|
||||||
end
|
end
|
||||||
end, 0)
|
end)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user