aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2023-01-04 15:10:19 -0700
committerGregory Anders <greg@gpanders.com>2023-01-07 08:19:37 -0700
commit6ffa434f0b1c6e82fb6c1445d5d7382e0ef22e07 (patch)
tree6f6ab3d711c26a8d91c7bf51ddc16027cec9d7b0 /runtime/plugin
parent34d1eaa792fa332cea190568967a489e324fca6f (diff)
downloadrneovim-6ffa434f0b1c6e82fb6c1445d5d7382e0ef22e07.tar.gz
rneovim-6ffa434f0b1c6e82fb6c1445d5d7382e0ef22e07.tar.bz2
rneovim-6ffa434f0b1c6e82fb6c1445d5d7382e0ef22e07.zip
refactor(editorconfig)!: change editorconfig_enable to editorconfig
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/editorconfig.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/plugin/editorconfig.lua b/runtime/plugin/editorconfig.lua
index c715279fd5..54cd0e828e 100644
--- a/runtime/plugin/editorconfig.lua
+++ b/runtime/plugin/editorconfig.lua
@@ -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