Improve lsp-mode keybindings

This commit is contained in:
2019-08-14 12:57:35 +01:00
parent a7039ea983
commit e7d55655d7
4 changed files with 11 additions and 8 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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)

View File

@@ -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))