lsp/presets/haskell-language-server.nix: Add cabal-fmt as an extra package if lsp is enabled

Otherwise, formatting a .cabal file throws an error that cabal-fmt can't
be found. This is especially annoying if saving => formatting, because
each save throws an error which must be escaped.
This commit is contained in:
dathegreat 2026-04-27 11:54:15 -06:00 committed by Ching Pei Yang
commit f15c3f377a
2 changed files with 2 additions and 0 deletions

View file

@ -98,6 +98,7 @@ in {
(mkIf cfg.extensions.haskell-tools.enable {
vim = {
extraPackages = [haskellPackages.cabal-fmt];
startPlugins = ["haskell-tools-nvim"];
luaConfigRC.haskell-tools-nvim = entryAfter ["lsp-servers"] ''
vim.g.haskell_tools = {