• Stars
    star
    308
  • Rank 135,017 (Top 3 %)
  • Language Fennel
  • License
    GNU General Publi...
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

EditorConfig plugin for Neovim

editorconfig.nvim

EditorConfig plugin for Neovim written in Lua Fennel.

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

Project Status

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.

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.

Contributing

File issues in the GitHub issue tracker. Changes can be sent as git-send-email patches to ~gpanders/[email protected] or as a GitHub pull request.

License

GPLv3

See Also

More Repositories

1

ijq

Interactive jq (mirror)
Go
135
star
2

nvim-parinfer

parinfer for Neovim
Fennel
112
star
3

vim-medieval

Evaluate Markdown code blocks within Vim
Vim Script
101
star
4

nvim-moonwalk

Use any language that compiles to Lua in your Neovim configuration
Lua
57
star
5

vim-oldfiles

Improve Vim's native recent file history
Vim Script
27
star
6

meta-scipy

OpenEmbedded layer for scipy (ARCHIVED)
BitBake
20
star
7

fennel-repl.nvim

A Fennel REPL that runs in Neovim
Fennel
19
star
8

colmap-docker

Dockerized COLMAP
Shell
15
star
9

fzy.zig

Rewrite of fzy in Zig (mirror)
Zig
15
star
10

esp32-zig-starter

Starter project for using Zig with ESP IDF
Zig
12
star
11

fzf-prezto

fzf module for prezto zsh framework
Shell
12
star
12

ztags

Generate tags files for Zig projects
Zig
12
star
13

dotfiles

Mirror
Fennel
12
star
14

vim-scdoc

Vim runtime files for scdoc
Vim Script
5
star
15

vitis_example

Example project for Xilinx Vitis
Tcl
5
star
16

zynqmp-boot-apps

Generate and install boot apps for the Zynq MPSoC device
Makefile
5
star
17

passage

Password store using age
Rust
4
star
18

nvim-scpaste

Fennel
4
star
19

gnss-signal-processing

GNSS Signal Processing (ASE 389P-7) [Spring 2017]
MATLAB
3
star
20

pushbroom

Sweep your filesystem free of clutter
Python
3
star
21

homebrew-tap

Custom Homebrew formulae
Ruby
2
star
22

adventofcode

Zig
2
star
23

fpga-design-template

Project template for Xilinx-based FPGA designs
Tcl
2
star
24

7guis

Swift
1
star
25

DragIt

Source for the DragIt! Chrome/Chromium extension
JavaScript
1
star
26

vim-man

Read man pages in Vim
Vim Script
1
star
27

slackbots-cli

JavaScript
1
star
28

acciobook

Python
1
star
29

meshtool

Data analysis tool for 3D surface meshes
C++
1
star