reload editorconfig on User FilePost event only if enabled #2672

pull/2683/head
siduck 3 months ago
parent 59082a8f28
commit 56cc2d757a

@ -121,7 +121,10 @@ vim.api.nvim_create_autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
vim.schedule(function()
vim.api.nvim_exec_autocmds("FileType", {})
require("editorconfig").config(args.buf)
if vim.g.editorconfig then
require("editorconfig").config(args.buf)
end
end, 0)
end
end,

Loading…
Cancel
Save