Fork me on GitHub

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

👍 1

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.

gratitude 1
Martynas M16:05:49

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 XDG basedir specification have been pushed to - 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