-
Would it be possible to add an option to change the default indentation start for splitting? Currently, TreeSJ uses the first non-whitespace character of the current line. It would enable my use-case to change that to the first character of the target node. I intend to write a split-join config for Haskell, but I can’t make it work with TreeSJ indentation behaviour. Consider a Haskell program like this: main = do
let x = [1, 2, 3]
putStrLn $ show x with a Haskell config like this: haskell = {
list = {
both = {
separator = ",",
},
}
} I get: main = do
let x = [
1,
2,
3,
]
putStrLn $ show x This is incorrect, because in a let statement, following lines must be indented more than the binding’s name ( main = do
let x = [
1,
2,
3,
]
putStrLn $ show x |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can add the necessary indent using the |
Beta Was this translation helpful? Give feedback.
E.g: