更新了下 https://emacs-china.org/t/topic/5241
我放棄了x s S ; H L M
原生功能
;; Rebind surround to S instead of s, so we can use s for avy
(evil-define-key 'operator evil-surround-mode-map "S" 'evil-surround-edit)
(evil-define-key 'visual evil-surround-mode-map "S" 'evil-surround-region)
(evil-snipe-mode -1)
;; avy
(evil-define-key '(normal motion) global-map "s" #'avy-goto-char-timer)
(evil-define-key '(visual operator) evil-surround-mode-map "s" #'avy-goto-char-timer)
(setq avy-timeout-seconds 0.2)
"C-j" #'my-xref/find-definitions
"C-," #'my-xref/find-references
";" (lambda () (interactive) (avy-goto-char-timer) (my-xref/find-definitions))
"x;" (lambda () (interactive) (avy-goto-char-timer) (my-xref/find-references))
"L" #'lsp-ui-peek-jump-backward
"M-<" #'previous-error
"M->" #'next-error
x
我已經換作lsp-ui和cquery快捷鍵