diff --git a/hls-stylish-haskell-plugin.cabal b/hls-stylish-haskell-plugin.cabal
--- a/hls-stylish-haskell-plugin.cabal
+++ b/hls-stylish-haskell-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               hls-stylish-haskell-plugin
-version:            1.0.0.2
+version:            1.0.0.3
 synopsis:           Integration with the Stylish Haskell code formatter
 description:
   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -24,10 +24,10 @@
     , filepath
     , ghc
     , ghc-boot-th
-    , ghcide           >=1.2  && <1.5
+    , ghcide           >=1.2  && <1.6
     , hls-plugin-api   >=1.1  && <1.3
     , lsp-types
-    , stylish-haskell  ^>=0.12
+    , stylish-haskell  ^>=0.12 || ^>=0.13
     , text
 
   default-language: Haskell2010
diff --git a/src/Ide/Plugin/StylishHaskell.hs b/src/Ide/Plugin/StylishHaskell.hs
--- a/src/Ide/Plugin/StylishHaskell.hs
+++ b/src/Ide/Plugin/StylishHaskell.hs
@@ -9,9 +9,8 @@
 import           Data.Text                   (Text)
 import qualified Data.Text                   as T
 import           Development.IDE             hiding (pluginHandlers)
-import           Development.IDE.GHC.Compat  (ModSummary (ms_hspp_opts))
-import qualified DynFlags                    as D
-import qualified EnumSet                     as ES
+import           Development.IDE.GHC.Compat  (ModSummary (ms_hspp_opts), extensionFlags)
+import qualified Development.IDE.GHC.Compat.Util as Util
 import           GHC.LanguageExtensions.Type
 import           Ide.PluginUtils
 import           Ide.Types
@@ -52,7 +51,7 @@
       | otherwise
       = pure config
 
-    getExtensions = map showExtension . ES.toList . D.extensionFlags
+    getExtensions = map showExtension . Util.toList . extensionFlags
 
     showExtension Cpp   = "CPP"
     showExtension other = show other
