File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -2580,7 +2580,12 @@ an Elisp regexp."
2580
2580
(define-minor-mode lsp-mode ""
2581
2581
nil nil nil
2582
2582
:keymap lsp-mode-map
2583
- :lighter (:eval (lsp-mode-line))
2583
+ :lighter
2584
+ '(" LSP["
2585
+ (lsp--buffer-workspaces
2586
+ (:eval (mapconcat #'lsp--workspace-print lsp--buffer-workspaces "]["))
2587
+ (:propertize "Disconnected" face warning))
2588
+ "]")
2584
2589
:group 'lsp-mode)
2585
2590
2586
2591
(defvar lsp-mode-menu
@@ -2625,13 +2630,6 @@ an Elisp regexp."
2625
2630
:filter ,(lambda (_) (nthcdr 3 dap-ui-menu-items)))))
2626
2631
"Menu for lsp-mode.")
2627
2632
2628
- (defun lsp-mode-line ()
2629
- "Construct the mode line text."
2630
- (if-let ((workspaces (lsp-workspaces)))
2631
- (concat " LSP" (string-join (--map (format "[%s]" (lsp--workspace-print it))
2632
- workspaces)))
2633
- (concat " LSP" (propertize "[Disconnected]" 'face 'warning))))
2634
-
2635
2633
(defalias 'make-lsp-client 'make-lsp--client)
2636
2634
2637
2635
(cl-defstruct lsp--registered-capability
You can’t perform that action at this time.
0 commit comments