I'm using the lsp layer on Spacemacs with javascript-backend 'lsp and it activates two modes I don't like: lsp-ui-mode and eldoc.
I found lsp-ui-mode inside lsp-mode-hook and added (remove-hook 'lsp-mode-hook 'lsp-ui-mode) to my init.el, which fixed that.
But I can't find where eldoc-mode is being called. How do I search for it within (all?) hooks?