Files
neovim/runtime/plugin/editorconfig.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
327 B
Lua
Raw Normal View History

if vim.g.editorconfig_enable == false or vim.g.editorconfig_enable == 0 then
return
end
local group = vim.api.nvim_create_augroup('editorconfig', {})
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead', 'BufFilePost' }, {
group = group,
callback = function(args)
require('editorconfig').config(args.buf)
end,
})