jdhao / nvim-config

A modern Neovim configuration with full battery for Python, Lua, C++, Markdown, LaTeX, and more...
MIT License
3.56k stars 527 forks source link

Indentation style #151

Closed fvcci closed 1 year ago

fvcci commented 2 years ago

Hi! I have been using your config for a while and really love it! There is just one small caveat though, which is that your indentation style is different from mine.

Specifically, your config prefers to indent multiline arguments and expressions to brackets like this:

image

When I would like to have it like this:

image

I have tried searching the files to configure the indentation to my liking, but ended up coming up with nothing so I finally caved in and made a "Feature request" to ask where I can change this indentation style. Many thanks!

jdhao commented 1 year ago

You can config a formatter for this, like black or yapf. Use neoformat or null-ls for this.