-
-
Save dignifiedquire/d6f06aaf197ad790f899d9a6092657d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package lsp-mode | |
:hook ( | |
(rust-mode . lsp-deferred) | |
(lsp-mode . lps-enable-which-key-integration) | |
) | |
:commands lsp lsp-deferred lsp-mode lsp-workspace-folders-add | |
:config | |
(setq lsp-auto-guess-root nil | |
lsp-keep-workspace-alive nil | |
lsp-enable-file-watchers nil | |
lsp-rust-server 'rust-analyzer) | |
) | |
(use-package lsp-ui | |
:commands lsp-ui-mode | |
:config | |
(setq | |
lsp-ui-sideline-show-code-actions nil | |
lsp-ui-doc-enable t | |
) | |
(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) | |
) | |
(use-package helm-lsp | |
:commands helm-lsp-workspace-symbol | |
:config | |
(define-key lsp-mode-map [remap xref-find-apropos] #'helm-lsp-workspace-symbol) | |
) | |
(use-package company-lsp | |
:commands company-lsp) | |
(use-package which-key | |
:config (which-key-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment