haskell-flake
haskell-flake copied to clipboard
Document how to configure HLS
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.
The above code no longer works.
EDIT: It works on older nixpkgs (2022), but not on the latest one.