    ;; List of configuration layers to load.
    dotspacemacs-configuration-layers
    '(
-     ;; ----------------------------------------------------------------
-     ;; Example of useful layers you may want to use right away.
-     ;; Uncomment some layer names and press `SPC f e R' (Vim style) or
-     ;; `M-m f e R' (Emacs style) to install them.
-     ;; ----------------------------------------------------------------
-     auto-completion
-     better-defaults
-     emacs-lisp
-     git
-     helm
-     lsp
-     markdown
-     multiple-cursors
-     org
-     (shell :variables
-            shell-default-height 30
-            shell-default-position 'bottom)
-     spell-checking
-     syntax-checking
-     version-control
-     treemacs)
+      ;; ----------------------------------------------------------------
+      ;; Example of useful layers you may want to use right away.
+      ;; Uncomment some layer names and press `SPC f e R' (Vim style) or
+      ;; `M-m f e R' (Emacs style) to install them.
+      ;; ----------------------------------------------------------------
+      auto-completion
+      better-defaults
+      emacs-lisp
+      git
+      helm
+      (lsp :variables
+        lsp-lens-enable t
+        lsp-rust-server 'rust-analyzer
+        lsp-rust-analyzer-server-display-inlay-hints t
+        cargo-process-reload-on-modify t)
+      markdown
+      multiple-cursors
+      org
+      (shell :variables
+        shell-default-height 30
+        shell-default-position 'bottom)
+      spell-checking
+      syntax-checking
+      version-control
+      treemacs
+
+      (rust :variables
+        rust-format-on-save t)
+    )
 
 
    ;; List of additional packages that will be installed without being wrapped

  "Library to load while dumping.
This function is called only while dumping Spacemacs configuration. You can
`require' or `load' the libraries of your choice that will be included in the
dump.")


(defun dotspacemacs/user-config ()

   ;; `dotspacemacs/user-config'. To use a local version of a package, use the
   ;; `:location' property: '(your-package :location "~/path/to/your-package/")
   ;; Also include the dependencies as they will not be resolved automatically.
   dotspacemacs-additional-packages '(direnv)

   ;; A list of packages that cannot be updated.
   dotspacemacs-frozen-packages '()
