ece.nvim is a Neovim plugin that provides a way to edit and manage EditorConfig files using the current Neovim settings.
Use your favorite plugin manager to install ece.nvim.
Using lazy.nvim:
{
"cosmicboots/ece.nvim",
config = true
}
Using packer.nvim:
use {
"cosmicboots/ece.nvim",
config = function()
require("ece").setup()
end
}
The main goal of this plugin is to automatically create/update the
.editorconfig
settings by using the current Neovim buffer settings.
For example, if you're editing a Lua file and you run :ECSaveExt
, you will
get the following chunk added (or updated) in your projects .editorconfig
:
[*.lua]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
The values set for the above options come from the current buffers settings.
For example, the indent_size
option is set using Neovim's shiftwidth
buffer
option.