gpanders/editorconfig.nvim

EditorConfig plugin for Neovim

Fennel

322

58 commits

updated Mar 12, 2025

See the code

README

editorconfig.nvim

EditorConfig plugin for Neovim written in Lua Fennel.

editorconfig.nvim is tested against editorconfig-plugin-tests.

Project Status

Native EditorConfig support was added to Neovim in version 0.9.

This plugin is now archived.

Supported properties

  • charset
  • end_of_line
  • indent_size
  • indent_style
  • insert_final_newline
  • max_line_length
  • tab_width
  • trim_trailing_whitespace

Adding custom properties

Custom properties can be added through the properties table:

require('editorconfig').properties.foo = function(bufnr, val)
  vim.b[bufnr].foo = val
end

Installation

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.

FAQ

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.

License

GPLv3

See Also

editorconfig
neovim

Contributors

gpanders

56 commits

eshepelyuk

1 commits

jay-ouellette

1 commits

gpanders/editorconfig.nvim

EditorConfig plugin for Neovim

Fennel

322

58 commits

updated Mar 12, 2025

See the code

README

editorconfig.nvim

EditorConfig plugin for Neovim written in Lua Fennel.

editorconfig.nvim is tested against editorconfig-plugin-tests.

Project Status

Native EditorConfig support was added to Neovim in version 0.9.

This plugin is now archived.

Supported properties

  • charset
  • end_of_line
  • indent_size
  • indent_style
  • insert_final_newline
  • max_line_length
  • tab_width
  • trim_trailing_whitespace

Adding custom properties

Custom properties can be added through the properties table:

require('editorconfig').properties.foo = function(bufnr, val)
  vim.b[bufnr].foo = val
end

Installation

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.

FAQ

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.

License

GPLv3

See Also

editorconfig
neovim

Contributors

gpanders

56 commits

eshepelyuk

1 commits

jay-ouellette

1 commits

Languages

Fennel

81.0%

Vim Script

16.8%

Makefile

1.3%