mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Improve lsp-mode keybindings
This commit is contained in:
@@ -18,10 +18,7 @@
|
||||
:commands go-mode
|
||||
:bind (:map go-mode-map
|
||||
("RET" . newline-and-indent)
|
||||
("C-h f" . godoc-at-point)
|
||||
("C-c C-j" . godef-jump)
|
||||
("C-c C-j" . lsp-ui-peek-find-definitions)
|
||||
("C-c C-." . lsp-rename))
|
||||
("C-h f" . godoc-at-point))
|
||||
|
||||
:hook
|
||||
(go-mode . siren-go-mode-setup)
|
||||
|
||||
@@ -48,9 +48,7 @@
|
||||
("RET" . newline-and-indent)
|
||||
("C-c C-l" . goto-line)
|
||||
("C-M-f" . sp-ruby-forward-sexp)
|
||||
("C-M-b" . sp-ruby-backward-sexp)
|
||||
("C-c C-j" . lsp-ui-peek-find-definitions)
|
||||
("C-c C-." . lsp-rename))
|
||||
("C-M-b" . sp-ruby-backward-sexp))
|
||||
|
||||
:hook
|
||||
(ruby-mode . siren-ruby-mode-setup)
|
||||
@@ -110,7 +108,7 @@
|
||||
:bind (:map robe-mode-map
|
||||
("C-c C-j" . robe-jump)
|
||||
("C-c b". pop-tag-mark))
|
||||
:hook (ruby-mode . robe-mode)
|
||||
;; :hook (ruby-mode . robe-mode)
|
||||
|
||||
:init
|
||||
(eval-after-load 'company
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
(use-package lsp-ui
|
||||
:commands lsp-ui-mode
|
||||
|
||||
:bind (:map lsp-ui-mode-map
|
||||
("C-c C-d" . lsp-ui-doc-show)
|
||||
("M-?" . lsp-ui-peek-find-references)
|
||||
("C-c C-j" . lsp-ui-peek-find-definitions))
|
||||
|
||||
:hook
|
||||
(lsp-mode . lsp-ui-mode)
|
||||
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
(use-package lsp-mode
|
||||
:commands lsp
|
||||
|
||||
:bind (:map lsp-mode-map
|
||||
("C-c C-." . lsp-rename))
|
||||
|
||||
:custom
|
||||
(lsp-eldoc-render-all nil))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user