Skip to content

Issue with null-ls and dprint when formatting non-existent files #7

@leonasdev

Description

@leonasdev

When using dprint with null-ls to format a file that does not yet exist, there is an issue where the content is not formatted properly. For example, if a new file (e.g. nvim test.ts) is created and some content is edited in it, then a textDocument/formatting request is sent to null-ls before saving the file, the content is not formatted. However, if the file is saved first (:w) and then the formatting request is sent, the content is formatted correctly.

see jose-elias-alvarez/null-ls.nvim#1516

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions