diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index d6e43efd..ca163692 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -368,13 +368,6 @@ make sure to setup authinfo (setq auth-sources '("~/.authinfo")) #+end_src *** Lsp-mode -**** Lsp-Mode hook -#+begin_src emacs-lisp - (defun efs/lsp-mode-setup () - (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols)) - (lsp-headerline-breadcrumb-mode)) - - :hook (lsp-mode . efs/lsp-mode-setup) #+end_src **** Language Servers #+begin_src emacs-lisp @@ -392,6 +385,13 @@ make sure to setup authinfo :config (lsp-enable-which-key-integration t)) #+end_src +**** Better lsp mode ui +#+begin_src emacs-lisp +(use-package lsp-ui + :hook (lsp-mode . lsp-ui-mode) + :custom + (lsp-ui-doc-position 'bottom)) +#+end_src **** Languages ***** Typescript #+begin_src emacs-lisp diff --git a/config/emacs/init.el b/config/emacs/init.el index 6e746a57..2b5ca6ba 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -306,12 +306,6 @@ :after magit) (setq auth-sources '("~/.authinfo")) -(defun efs/lsp-mode-setup () -(setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols)) -(lsp-headerline-breadcrumb-mode)) - -:hook (lsp-mode . efs/lsp-mode-setup) - (defun sakomacs/lsp-mode-setup () (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols)) (lsp-headerline-breadcrumb-mode)) @@ -326,6 +320,11 @@ :config (lsp-enable-which-key-integration t)) +(use-package lsp-ui + :hook (lsp-mode . lsp-ui-mode) + :custom + (lsp-ui-doc-position 'bottom)) + (use-package js2-mode :mode "\\.js\\'" :hook (js2-mode . lsp-deferred))