I've greatly simplified the LSP layer configuration I was using. Most visual elements are toned down or disabled by default, except for the slideline bar and documentation pop-ups. The lsp layer configuration I am currently using disables the sideline bar and documentation pop-ups. The config also maximises the space in all treemacs views for LSP
(lsp :variables
lsp-ui-doc-enable nil ;; disable all doc popups
lsp-ui-sideline-enable nil ;; disable sideline bar for less distraction
treemacs-space-between-root-nodes nil ;; no spacing in treemacs views
)
My doom config is pretty similar to that :) after quite some time using lsp I realized I didn't need most lsp-ui features too
Thank you for helping to simplify the defaults in LSP UI, its much appreciated.
I use this config:
(lsp :variables
;; useless popup
;;
lsp-ui-doc-enable nil
lsp-ui-sideline-enable t
;;lsp-ui-sideline-show-hover t
;;lsp-ui-sideline-show-diagnostics t
lsp-ui-sideline-show-code-actions t
;; the line is very tall, disable it
;;
lsp-headerline-breadcrumb-enable nil
) The LSP update and support for the http://FreeDesktop.org XDG basedir specification have been pushed to https://github.com/practicalli/spacemacs.d/ - my configuration for Spacemacs, now running in ~/.config/spacemacs directory
• simplified lsp layer (as in previous post)
• XDG basedir specification - custom files relative to dotspacemacs-directory so will work from ~/.config/spacemacs or ~/.spacemacs.d/ directories
• Customize variables section split into its own file, simplifying the versioning of the Spacemacs init.el file
• Treemacs history files saved to user-emacs .cache directory