From de2f0cce4b5c5faccdaee15251b3778bfb6f1f87 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:55:51 +0400 Subject: [PATCH] befor ei forget --- config/emacs/emacs.org | 14 +++++++------- config/emacs/init.el | 11 +++++------ 2 files changed, 12 insertions(+), 13 deletions(-) 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))