Skip to content

Create .editorconfig files from current Neovim buffer settings

License

Notifications You must be signed in to change notification settings

cosmicboots/ece.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Create .editorconfig files from current Neovim buffer settings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published