Skip to content

Instantly share code, notes, and snippets.

@dignifiedquire
Created April 28, 2020 18:46
Show Gist options
  • Save dignifiedquire/d6f06aaf197ad790f899d9a6092657d9 to your computer and use it in GitHub Desktop.
Save dignifiedquire/d6f06aaf197ad790f899d9a6092657d9 to your computer and use it in GitHub Desktop.
(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