befor ei forget

This commit is contained in:
Sakooooo 2023-09-11 13:55:51 +04:00
parent c15812be7a
commit de2f0cce4b
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 12 additions and 13 deletions

View file

@ -368,13 +368,6 @@ make sure to setup authinfo
(setq auth-sources '("~/.authinfo")) (setq auth-sources '("~/.authinfo"))
#+end_src #+end_src
*** Lsp-mode *** 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 #+end_src
**** Language Servers **** Language Servers
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -392,6 +385,13 @@ make sure to setup authinfo
:config :config
(lsp-enable-which-key-integration t)) (lsp-enable-which-key-integration t))
#+end_src #+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 **** Languages
***** Typescript ***** Typescript
#+begin_src emacs-lisp #+begin_src emacs-lisp

View file

@ -306,12 +306,6 @@
:after magit) :after magit)
(setq auth-sources '("~/.authinfo")) (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 () (defun sakomacs/lsp-mode-setup ()
(setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols)) (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols))
(lsp-headerline-breadcrumb-mode)) (lsp-headerline-breadcrumb-mode))
@ -326,6 +320,11 @@
:config :config
(lsp-enable-which-key-integration t)) (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 (use-package js2-mode
:mode "\\.js\\'" :mode "\\.js\\'"
:hook (js2-mode . lsp-deferred)) :hook (js2-mode . lsp-deferred))