LSP: Add LSP-UI keybindings by remapping xref functions
This commit is contained in:
parent
91ab7f3e31
commit
15dca42666
1 changed files with 6 additions and 1 deletions
|
|
@ -944,12 +944,17 @@ https://github.com/joaotavora/yasnippet
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq lsp-ui-doc-position (quote top))
|
(setq lsp-ui-doc-position (quote top))
|
||||||
|
(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
|
||||||
|
(define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references)
|
||||||
|
(define-key lsp-ui-mode-map [remap complete-symbol] #'company-complete)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package company-lsp
|
(use-package company-lsp
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands company-lsp
|
:commands company-lsp
|
||||||
:config (push 'company-lsp company-backends)) ;; add company-lsp as a backend
|
:config
|
||||||
|
(push 'company-lsp company-backends) ;; add company-lsp as a backend
|
||||||
|
)
|
||||||
|
|
||||||
(use-package ccls
|
(use-package ccls
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue