EditorConfig plugin for Neovim written in
editorconfig.nvim is tested against editorconfig-plugin-tests.
Neovim 0.9 has EditorConfig integration builtin, so this plugin is no longer necessary. Bug fixes will continue to be addressed when reported to support older versions of Neovim, but no further features will be added.
Adding custom properties
Custom properties can be added through the
require('editorconfig').properties.foo = function(bufnr, val) vim.b[bufnr].foo = val end
Install using your favorite package manager, or install manually using Nvim's builtin package support:
git clone https://github.com/gpanders/editorconfig.nvim ~/.config/nvim/pack/gpanders/start/editorconfig.nvim
This plugin requires no setup and will "just work" when installed.
Q: Why use this instead of editorconfig-vim?
A: This plugin aims for simplicity and performance: editorconfig-vim contains over 1000 SLOC, while this plugin has just under 200.
Q: Why does it only work for Neovim?
A: Vim does not have the same level of support for Lua, and this plugin uses many Neovim-specific APIs. Vim users should continue to use editorconfig-vim.