gpanders/editorconfig.nvim

github github
formatting
star 116
stars
alert-circle 0
open issues
users 5
subscribers
git-branch 2
forks
CREATED

2021-07-13

UPDATED

3 months ago


editorconfig.nvim

EditorConfig plugin for Neovim written in Lua Fennel.

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

This plugin is considered complete: bugs will continue to be fixed if and when they're found, but no new features will be added (except to stay up-to-date with any changes to the EditorConfig specification).

Supported properties

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

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.

Additionally, while performance for an EditorConfig plugin is certainly not the most important thing in the world, it still matters, particularly since it is going to run each time you open a new buffer. This plugin is not only smaller than editorconfig-vim, but is written in Lua, which is demonstrably faster than Vimscript.

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.

Contributing

File issues in the GitHub issue tracker. Changes can be sent as git-send-email patches to ~gpanders/public-inbox@lists.sr.ht or as a GitHub pull request.

License

GPLv3

See Also