rest-nvim / rest.nvim

A fast Neovim http client written in Lua
GNU General Public License v3.0
1.61k stars 142 forks source link

chore: set `lua` indent_size in editorconfig #305

Closed PriceHiller closed 8 months ago

PriceHiller commented 8 months ago

Neovim supports editorconfig now, it has a builtin plugin for it. See :h editorconfig.

This change ensures editors pick up the correct indent_size (like Neovim) and set their indent sizing correctly.

stylua.toml is using the indent size as 2, so I set all lua files to use an indent size of 2 as well in the editorconfig.

It was driving me a tiny bit bonkers having to run :set shifwidth=2 on every lua file while working on something else 😄.