spacemacs

Ben Sless 2021-12-14T13:58:55.173200Z

About once a month I give a try to LSP in Spacemacs and get bummed that it impolitely overrides CIDER's behavior with describe-thing-at-point and cursor hover 😞

Ben Sless 2021-12-14T13:59:10.173600Z

This isn't LSP's fault, it's just Spacemacs' behavior

practicalli-johnny 2021-12-14T14:12:00.187Z

Have you raised an issue on the Spacemacs repository about this?

practicalli-johnny 2021-12-14T14:20:32.187200Z

I don't have an issue with this binding as I find the other help bindings more useful. I can also get docs from auto-complete and LSP UI doc popups. Feel free to suggest some alternative key bindings to the Spacemacs mainteners, or rebind keys in the dotspacacs/user-config

practicalli-johnny 2021-12-14T14:01:15.175200Z

Is this one key binding definition in the Clojure layer your only concern?

Ben Sless 2021-12-14T14:01:56.175800Z

not just the key binding, also the display at the bottom frame when the cursor hovers over symbols

Ben Sless 2021-12-14T14:02:49.176600Z

Generally I'd want to keep all of Clojure layer's bindings unchanged

practicalli-johnny 2021-12-14T14:05:39.180400Z

I only recall that one changed key binding. LSP does add its own keybindings along side the Cider and clj-refactor key bindings (I have used clj-refactor for years, so theyay be some over-riding there)

Ben Sless 2021-12-14T14:08:16.184800Z

Presumably

"hh" 'cider-doc
              "=r" 'cider-format-region
              "ge" 'cider-jump-to-compilation-error
              "gr" 'cider-find-resource
              "gs" 'cider-browse-spec
              "gS" 'cider-browse-spec-all))

Ben Sless 2021-12-14T14:08:54.185700Z

and mr

practicalli-johnny 2021-12-14T14:10:05.186900Z

LSP by nature adds a lot of common language features, some of which CIDER also implemented. They are both self-described IDEs so bound to be some crossover. LSP is a big change to Emacs UI (although more features in the UI are now switched off by default). Unless there are specific LSP features needed, stick with Cider and clj-kondo

Ben Sless 2021-12-14T15:35:06.187800Z

I'm very happy with cider, mostly concerned I might be missing something by not using LSP too

practicalli-johnny 2021-12-14T16:59:40.188Z

Take a look at the features guide to see if you really need LSP https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/#lsp-features

practicalli-johnny 2021-12-14T17:02:00.188300Z

If you do try LSP, then it would also be worth looking at how to enable/disable specific features https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/