Skip to content

auto-format not running on write #5723

@nemoos0

Description

@nemoos0

Summary

The command :format works fine but even if editor.auto-format is set to true the file is not formatted on :write.
Am I missing something?

Reproduction Steps

Set editor.auto-format = true (it should be the default).

Run this to install the python lsp and all its extensions: pip install "python-lsp-server[all]"

Copy/paste this code in a pyton file and open it

def f(x):
    return x



def g(y):
    return y

A warning should appear: E303 too many blank lines.

Running :write does not format the file, but running :format will.

Helix log

Nothing was written in the log file

Platform

Linux

Terminal Emulator

wezterm 20221119-145034-49b9839f

Helix Version

helix 22.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions