Skip to content

[BUG] Conform plugin config using deprecated syntax for stop after first formatter #2064

@347Online

Description

@347Online
Field Description
Plugin conform-nvim
Nixpkgs unstable
Home Manager unstable
  • I have read the FAQ and my bug is not listed there.

Description

Conform has deprecated the nested list syntax for stopping after the first available formatter (#491). New syntax for this uses a flat table, with an additional option stop_after_first. Using the previous syntax causes a warning to be shown the first time you the formatter in a given instance of neovim.

I find I end up closing and re-opening Neovim quite often, so I'm seeing this warning extremely frequently and it is very disruptive.

Minimal, Reproducible Example (MRE)

programs.nixvim = {
    enable = true;
    plugins.conform-nvim = {
        # See https://github.com/nix-community/nixvim/blob/1854d591cb0e5be6ad97f5091766cdf28e948265/plugins/lsp/conform-nvim.nix#L30
        # Use a sub-list to run only the first available formatter
        javascript = [ [ "prettierd" "prettier" ] ];
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions