@@ -2531,7 +2531,11 @@ still unanswered LSP requests to the server\n"))))
2531
2531
'(:eval
2532
2532
(when (and (memq 'mode-line eglot-code-action-indications)
2533
2533
(overlay-buffer eglot--suggestion-overlay))
2534
- (overlay-get eglot--suggestion-overlay 'eglot--suggestion-tooltip)))
2534
+ (eglot--mode-line-props
2535
+ eglot-code-action-indicator 'eglot-code-action-indicator-face
2536
+ `((mouse-1
2537
+ eglot-code-actions-at-mouse
2538
+ "execute code actions at point")))))
2535
2539
"Eglot mode line construct for at-point code actions.")
2536
2540
2537
2541
(add-to-list
@@ -2578,7 +2582,7 @@ still unanswered LSP requests to the server\n"))))
2578
2582
(defvar eglot-diagnostics-map
2579
2583
(let ((map (make-sparse-keymap)))
2580
2584
(define-key map [mouse-2] #'eglot-code-actions-at-mouse)
2581
- (define-key map [left-margin mouse-2 ] #'eglot-code-actions-at-mouse)
2585
+ (define-key map [left-margin mouse-1 ] #'eglot-code-actions-at-mouse)
2582
2586
map)
2583
2587
"Keymap active in Eglot-backed Flymake diagnostic overlays.")
2584
2588
@@ -4146,14 +4150,13 @@ at point. With prefix argument, prompt for ACTION-KIND."
4146
4150
(setq tooltip
4147
4151
(propertize eglot-code-action-indicator
4148
4152
'face 'eglot-code-action-indicator-face
4149
- 'help-echo blurb
4153
+ 'help-echo "mouse-1: execute code actions at point"
4150
4154
'mouse-face 'highlight
4151
4155
'keymap eglot-diagnostics-map))
4152
4156
(save-excursion
4153
4157
(goto-char (car bounds))
4154
4158
(let ((ov (make-overlay (car bounds) (cadr bounds))))
4155
4159
(overlay-put ov 'eglot--actions actions)
4156
- (overlay-put ov 'eglot--suggestion-tooltip tooltip)
4157
4160
(overlay-put
4158
4161
ov
4159
4162
'before-string
0 commit comments