refactor(editorconfig)!: change editorconfig_enable to editorconfig

This commit is contained in:
Gregory Anders
2023-01-04 15:10:19 -07:00
parent 34d1eaa792
commit 6ffa434f0b
4 changed files with 12 additions and 11 deletions

View File

@@ -3,8 +3,7 @@ vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead', 'BufFilePost' }, {
group = group,
callback = function(args)
-- Buffer-local enable has higher priority
local enable =
vim.F.if_nil(vim.b.editorconfig_enable, vim.F.if_nil(vim.g.editorconfig_enable, true))
local enable = vim.F.if_nil(vim.b.editorconfig, vim.F.if_nil(vim.g.editorconfig, true))
if not enable then
return
end