reload editorconfig on User FilePost event only if enabled #2672
This commit is contained in:
parent
f17e83010f
commit
8aec881517
@ -124,7 +124,10 @@ vim.api.nvim_create_autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
|
|||||||
|
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.api.nvim_exec_autocmds("FileType", {})
|
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, 0)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user