Does anyone have a good config for clojure-ts-mode and paredit? It's... not working as it should. Can't slurp, the "electric-pair-mode" like functionality doesn't work either. I could fix slurping like this:
(add-hook 'clojure-ts-mode-hook
(lambda ()
(setq-local forward-sexp-function nil)))
but there are many functions to override here which seems frustrating.
Is there an alterantive to paredit I should consider?paredit depends heavily on lisp-mode, unlike clojure-mode, clojure-ts-mode has nothing in common with it, so paredit is not working properly with clojure-ts-mode and I wouldn't advice to use it. Which functionality from electric-pair-mode doesn't work exactly? I use it and don't have any issues.
That's handy I always wondered why slurp stopped working turns out I switched to ts-mode and had paredit enabled, switched to puni so thanks for that pointed @tvaughan
@rrudakov Sorry, wasn't clear I turn off electric-pair-mode for clojure since paredit helps with that already - I meant that parentheses matching functionality in paredit broke as well. It makes sense with your explanation, so I'm going to check out puni.
I see. > (setq-local forward-sexp-function nil) btw by doing this you're basically telling clojure-ts-mode to not use Tree-sitter for this functionality and use built-in functions, that's why it fixes paredit
I've been pretty happy with puni https://github.com/AmaiKinono/puni/