Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hls-plugin-api/src/Ide/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ instance Default Config where
-- , formattingProvider = "floskell"
-- , formattingProvider = "stylish-haskell"
, cabalFormattingProvider = "cabal-fmt"
-- this string value needs to kept in sync with the value provided in HlsPlugins
, maxCompletions = 40
, plugins = mempty
}
Expand Down
4 changes: 3 additions & 1 deletion src/HlsPlugins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ idePlugins recorder = pluginDescToIdePlugins allPlugins
let pId = "fourmolu" in Fourmolu.descriptor (pluginRecorder pId) pId:
#endif
#if hls_cabalfmt
let pId = "cabalfmt" in CabalFmt.descriptor (pluginRecorder pId) pId:
-- this pId needs to be kept in sync with the hardcoded
-- cabalFormattingProvider in the Default Config
let pId = "cabal-fmt" in CabalFmt.descriptor (pluginRecorder pId) pId:
#endif
#if hls_tactic
let pId = "tactics" in Tactic.descriptor (pluginRecorder pId) pId:
Expand Down