reload editorconfig on User FilePost event only if enabled #2672
This commit is contained in:
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", {})
|
||||
|
||||
if vim.g.editorconfig then
|
||||
require("editorconfig").config(args.buf)
|
||||
end
|
||||
end, 0)
|
||||
end
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user