|
219 | 219 |
|
220 | 220 | (use-package smartparens
|
221 | 221 | :ensure t
|
| 222 | + :defer 1 |
222 | 223 | :init
|
223 | 224 | (defhydra smartparens-hydra ()
|
224 | 225 | "Smartparens"
|
|
315 | 316 | (python-mode . lsp)
|
316 | 317 | (go-mode . lsp)
|
317 | 318 | (terraform-mode . lsp)
|
| 319 | + (rust-mode . lsp) |
318 | 320 | (lsp-mode . lsp-enable-which-key-integration))
|
319 | 321 | :commands lsp
|
320 | 322 | :bind-keymap
|
321 | 323 | ("C-c l" . lsp-command-map)
|
322 | 324 | :config
|
323 | 325 | (willsheu/lsp-pyls-setup)
|
324 | 326 | (willsheu/lsp-ts-ls-setup)
|
| 327 | + (willsheu/lsp-rust-setup) |
325 | 328 | (setq lsp-keymap-prefix "C-c l")
|
326 | 329 | )
|
327 | 330 |
|
|
414 | 417 | :ensure
|
415 | 418 | :mode ("\\.\\(l\\|y\\)\\'"))
|
416 | 419 |
|
| 420 | +;; Rust |
| 421 | +(use-package rust-mode |
| 422 | + :ensure |
| 423 | + :mode ("\\.rs\\'") |
| 424 | + :config |
| 425 | + (setq rust-format-on-save t)) |
| 426 | + |
417 | 427 | ;; Python
|
418 | 428 | ;; (defun willsheu/pipenv-pyls-location ()
|
419 | 429 | ;; (message lsp--cur-workspace)
|
|
761 | 771 | '(lsp-prefer-flymake nil)
|
762 | 772 | '(lsp-pyls-server-command '("pyls_pipenv"))
|
763 | 773 | '(lsp-restart 'auto-restart)
|
| 774 | + '(lsp-rust-analyzer-cargo-load-out-dirs-from-check t) |
| 775 | + '(lsp-rust-analyzer-proc-macro-enable t) |
| 776 | + '(lsp-rust-server 'rust-analyzer) |
764 | 777 | '(lsp-ui-doc-enable nil)
|
765 | 778 | '(lsp-ui-peek-enable nil)
|
766 | 779 | '(lsp-ui-sideline-enable t)
|
|
771 | 784 | '(magit-refresh-verbose nil)
|
772 | 785 | '(org-export-backends '(ascii html icalendar latex md odt))
|
773 | 786 | '(package-selected-packages
|
774 |
| - '(git-link company-box which-key pipenv lsp-origami origami lsp-ivy minions company-terraform terraform-mode winnow forge cmake-mode glsl-mode flymd ccls prettier-js tide ediprolog dockerfile-mode counsel-projectile ivy-hydra counsel jdee org company-go go-mode flycheck-elm material-theme hemisu-theme leuven-theme color-theme-sanityinc-tomorrow dired-details+ web-mode solarized-theme robe lua-mode list-processes+ js2-mode idle-highlight-mode icicles hydra highlight-indent-guides haml-mode geiser fuzzy-match flycheck facemenu+ exec-path-from-shell elpy column-marker auctex ag)) |
| 787 | + '(rust-mode git-link company-box which-key pipenv lsp-origami origami lsp-ivy minions company-terraform terraform-mode winnow forge cmake-mode glsl-mode flymd ccls prettier-js tide ediprolog dockerfile-mode counsel-projectile ivy-hydra counsel jdee org company-go go-mode flycheck-elm material-theme hemisu-theme leuven-theme color-theme-sanityinc-tomorrow dired-details+ web-mode solarized-theme robe lua-mode list-processes+ js2-mode idle-highlight-mode icicles hydra highlight-indent-guides haml-mode geiser fuzzy-match flycheck facemenu+ exec-path-from-shell elpy column-marker auctex ag)) |
775 | 788 | '(prettier-js-show-errors 'echo)
|
776 | 789 | '(projectile-globally-ignored-directories
|
777 | 790 | '(".idea" ".ensime_cache" ".eunit" ".git" ".hg" ".fslckout" "_FOSSIL_" ".bzr" "_darcs" ".tox" ".svn" ".stack-work" "*.ccls-cache" ".ccls-cache"))
|
|
0 commit comments