Skip to content

feature request: add auto-indent (gg=G / indentexpr) as special formatter #255

@chrisgrieser

Description

@chrisgrieser

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

For some filetypes without formatters available, I found using a simple mapping to run gg=G useful to get at least some auto-formatting. It would be nice, if gg=G was available as a dedicated formatter for conform.nvim, similar to other special formatters like squeeze_blank or trim_newlines.

Provide background

It's another useful addition for the fallback filetype ["_"]. There are some filetypes where you either through treesitter or through "old vim" information on how to auto-indent (I believe it's opt.indentexpr?), but no formatter tooling. .scm files (treesitter query files) are one example.

What is the significance of this feature?

nice to have

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1May get worked on if I get free time. PRs welcomeenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions