Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: a new formatter for Vim's own C-indenting #555

Open
1 task done
heygarrett opened this issue Oct 22, 2024 · 0 comments · May be fixed by #596
Open
1 task done

feature request: a new formatter for Vim's own C-indenting #555

heygarrett opened this issue Oct 22, 2024 · 0 comments · May be fixed by #596
Labels
enhancement New feature or request

Comments

@heygarrett
Copy link

heygarrett commented Oct 22, 2024

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

Vim and Neovim have built-in functionality for indenting C-style programs:
https://neovim.io/doc/user/indent.html#_1.-indenting-c-style-programs

It would be awesome to be able to use this as a formatter like any other in Conform.

Provide background

All of the common C formatters have too many configuration options. As someone who only dabbles with C on occasion, Vim's built-in C-indenting is more than enough for my needs. But I'd love to have it trigger on save rather than running it manually (eg, visually selecting the whole file then hitting =). And having it set up as a formatter in Conform would mean not needing to duplicate format-on-save logic. It would also be great to use the formatter's condition property to check for a .clang-format file and fall back to clangd if it finds one.

What is the significance of this feature?

nice to have

Additional details

No response

@heygarrett heygarrett added the enhancement New feature or request label Oct 22, 2024
@heygarrett heygarrett linked a pull request Dec 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant