nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

[BUG] Enabling blackd & isortd in none-ls causes problems when saving

Open body20002 opened this issue 1 year ago • 2 comments

Field Description
Plugin none-ls
Nixpkgs unstable

  • [x] I have read the FAQ and my bug is not listed there.

Description

As the title says, nixvim doesn't open isortd or blackd, none-ls only tries to connect to localhost:45484 and localhost:47393 sometimes it even corrupts the file from other buffers (content of other buffers are saved in current buffer or vise-versa) running them using docker doesn't solve the problem, instead gives a new error

the workaround I found is just not to use them and instead use black & isort, it's slow but it's working

Minimal, Reproducible Example (MRE)

you can view my whole configuration on body20002/nvim.nix

  plugins.none-ls = {
    enable = true;
    enableLspFormat = true;
      formatting = {
        blackd.enable = true;
        isortd.enable = true;
      };
    };
  };

body20002 avatar Jul 18 '24 00:07 body20002