mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2025-06-16 03:57:45 +02:00
fix: test editorconfig ~= nil
This commit is contained in:
parent
6e7ff1cb45
commit
c015723035
@ -60,7 +60,7 @@ function M.setup(opts)
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
group = tidy_grp,
|
||||
callback = function()
|
||||
if not M.enabled or is_excluded_ft(opts) or not vim.tbl_isempty(vim.b.editorconfig) then
|
||||
if not M.enabled or is_excluded_ft(opts) or (vim.b.editorconfig ~= nil and not vim.tbl_isempty(vim.b.editorconfig)) then
|
||||
return false
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user