Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.09 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.09 KB

ece.nvim -- The EditorConfig Editor

ece.nvim is a Neovim plugin that provides a way to edit and manage EditorConfig files using the current Neovim settings.

Installation

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
}

Usage

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.