haskell-flake icon indicating copy to clipboard operation
haskell-flake copied to clipboard

Document how to configure HLS

Open srid opened this issue 2 years ago • 1 comments

For eg., to disable ormolu/fourmolu,

{
    settings.haskell-language-server.custom = with pkgs.haskell.lib.compose; lib.flip lib.pipe [
      (disableCabalFlag "ormolu")
      (disableCabalFlag "fourmolu")
      (drv: drv.override { hls-ormolu-plugin = null; })
      (drv: drv.override { hls-fourmolu-plugin = null; })
    ];
}

(from @shivaraj-bh )

We can create a https://community.flake.parts/haskell-flake/hls page for it.

srid avatar Feb 26 '24 14:02 srid

The above code no longer works.

EDIT: It works on older nixpkgs (2022), but not on the latest one.

srid avatar Apr 22 '24 09:04 srid