Skip to content

Add option to call lsp-format-buffer on save #3944

@michaelpj

Description

@michaelpj

It would be nice to have an option to set up buffer formatting on save. This is something that users can definitely do for themselves (e.g. https://github.com/emacs-lsp/lsp-mode/blob/8c478ce4f4ffb7cd3f9c152966d5480f113d7b7e/docs/manual-language-docs/lsp-rust-rls.md#rustfmt), but it's a common IDE option and so it would be nice to provide a simple option for it from a "batteries included" perspective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions