rockofox / intellij-haskell-lsp

IntelliJ Plugin that provides Haskell language support via haskell-language-server
https://plugins.jetbrains.com/plugin/24123-haskell-lsp
Apache License 2.0
16 stars 6 forks source link

How to prevent automatic folding symbols? #11

Open lao-boli opened 15 hours ago

lao-boli commented 15 hours ago

when I write haskell code in idea, it automatic folding some symbol ,which makes my code indentation messy. Is there any way to prevent him, or can you tell me the reason for him to fold automatically like this?

quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x : xs) =
  let smallerSorted = quicksort [a | a <- xs, a <= x]
      bigggerSorted = quicksort [b | b <- xs, b > x]
   in smallerSorted ++ (x : bigggerSorted)

fold symbol 'let' to '├'

lao-boli commented 15 hours ago

I'm sorry for posting the issue before uploading the image. This should be uploaded together with the image. Snipaste_2024-11-27_14-40-33