File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -161,11 +161,15 @@ Switch to current mouse interacting window before doing BODY."
161
161
directory-display-string)
162
162
directory-display-string))
163
163
164
+ (declare-function evil-set-jump " ext:evil-jumps" )
165
+
164
166
(lsp-defun lsp-headerline--symbol-with-action ((symbol &as &DocumentSymbol :name ) symbol-display-string)
165
167
" Build action for SYMBOL and SYMBOL-STRING."
166
168
(lsp-headerline--with-action (let ((map (make-sparse-keymap )))
167
169
(define-key map [header-line mouse-1]
168
170
(lsp-headerline--make-mouse-handler
171
+ (when (bound-and-true-p evil-mode)
172
+ (evil-set-jump))
169
173
(lsp-headerline--go-to-symbol symbol)))
170
174
(define-key map [header-line mouse-2]
171
175
(lsp-headerline--make-mouse-handler
@@ -335,6 +339,11 @@ PATH is the current folder to be checked."
335
339
(lsp--info " Server does not support breadcrumb." ))
336
340
(lsp--info " Call this function with a number representing the symbol position on breadcrumb" )))
337
341
342
+ (declare-function evil-set-command-property " ext:evil-common" )
343
+
344
+ (with-eval-after-load 'evil
345
+ (evil-set-command-property 'lsp-breadcrumb-go-to-symbol :jump t ))
346
+
338
347
;;;### autoload
339
348
(defun lsp-breadcrumb-narrow-to-symbol (symbol-position )
340
349
" Narrow to the symbol range on breadcrumb at SYMBOL-POSITION."
You can’t perform that action at this time.
0 commit comments