Improve Haskell/Java setups

Amolith created

Change summary

dot_config/doom/config.el.tmpl | 3 +++
dot_config/doom/init.el        | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)

Detailed changes

dot_config/doom/config.el.tmpl 🔗

@@ -197,3 +197,6 @@
                   (minibuffer . t)
                   (menu-bar-lines . t)
                   (window-system . x))))
+
+(after! lsp-haskell
+  (setq lsp-haskell-formatting-provider "ormolou"))

dot_config/doom/init.el 🔗

@@ -134,11 +134,11 @@
        ;;fstar             ; (dependent) types and (monadic) effects and Z3
        ;;gdscript          ; the language you waited for
        (go +lsp +tree-sitter)         ; the hipster dialect
-       ;;(haskell +lsp)    ; a language that's lazier than I am
+       (haskell +lsp +tree-sitter)    ; a language that's lazier than I am
        ;;hy                ; readability of scheme w/ speed of python
        ;;idris             ; a language you can depend on
        (json +tree-sitter)              ; At least it ain't XML
-       (java +lsp +tree-sitter)              ; the poster child for carpal tunnel syndrome
+       (java +tree-sitter)              ; the poster child for carpal tunnel syndrome
        (javascript +tree-sitter)        ; all(hope(abandon(ye(who(enter(here))))))
        ;;julia             ; a better, faster MATLAB
        kotlin            ; a better, slicker Java(Script)