mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2025-06-16 20:17:46 +02:00
feat: don't run if editorconfig is detected
This commit is contained in:
parent
b157a2b511
commit
b15bef77e7
@ -64,7 +64,7 @@ function M.setup(opts)
|
|||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
group = tidy_grp,
|
group = tidy_grp,
|
||||||
callback = function()
|
callback = function()
|
||||||
if not M.enabled or vim.b.tidy_enabled == false or is_excluded_ft(opts) then
|
if not M.enabled or vim.b.tidy_enabled == false or is_excluded_ft(opts) or not vim.tbl_isempty(vim.b.editorconfig) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user