From e1af8fbfd2b88aa7e2cdb39fc8f7d4d3c732ac5a Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 27 Feb 2023 21:12:43 +0100 Subject: [PATCH] Fixed emacs lsp --- emacs/.config/emacs/init.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index 166dba7..afa69d4 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -46,9 +46,9 @@ '(elcord-quiet t) '(elcord-use-major-mode-as-main-icon t) '(evil-undo-system 'undo-redo) - '(lsp-rust-server 'rls) + '(lsp-rust-server 'rust-analyzer) '(package-selected-packages - '(scss-mode yaml-mode ligature evil-smartparens smartparens web-mode sublimity typescript-mode glsl-mode format-all hl-todo elcord evil-tabs evil-commentary format-all auto-complete editorconfig haskell-mode counsel ivy go-mode rust-mode use-package treemacs-evil treemacs projectile doom-themes lsp-mode evil))) + '(lsp-ui company flycheck scss-mode yaml-mode ligature evil-smartparens smartparens web-mode sublimity typescript-mode glsl-mode format-all hl-todo elcord evil-tabs evil-commentary format-all auto-complete editorconfig haskell-mode counsel ivy go-mode rust-mode use-package treemacs-evil treemacs projectile doom-themes lsp-mode evil))) (custom-set-faces ;; custom-set-faces was added by Custom. @@ -161,3 +161,12 @@ (setq use-dialog-box nil) (global-auto-revert-mode 1) + +;; LSP ui +(use-package lsp-ui + :ensure + :commands lsp-ui-mode + :custom + (lsp-ui-peek-always-show t) + (lsp-ui-sideline-show-hover t) + (lsp-ui-doc-enable nil))