Skip to content

Replace smartindent and smarttab with custom indent and tab rules #1

@koibtw

Description

@koibtw

We need to write full custom indent specification, as smartindent is not great really.
Those rules would include stuff like:

  • tab after new scope + newline
  • // after comment + newline (?) (rust has that)
  • tab after a match case (see here)
  • same with labels
  • fixing this:
    2025-01-15_21-48

Also -1 tab after e.g.:

  • ending a scope
  • | in a match case
  • after a break and other scope-ending keywords

Setting up code folding would also be cool.

That's all off the top of my head but I'm sure there is more to do.

More resources that could help:
https://vimdoc.sourceforge.net/htmldoc/indent.html
https://stackoverflow.com/questions/11747840/creating-custom-vim-syntax-can-i-set-custom-auto-indent-rules

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions