gotta run

This commit is contained in:
Sakooooo 2023-09-12 13:57:29 +04:00
parent 9255d43139
commit a96a466c18
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 20 additions and 29 deletions

View file

@ -44,8 +44,7 @@ M-x org-bable-tangle
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Font ;; Font
(set-face-attribute `default nil :font "JetBrains Mono" :height 125) (set-face-attribute `default nil :font "JetBrains Mono" :height 100)
#+end_src #+end_src
* Package setup * Package setup
@ -372,25 +371,21 @@ make sure to setup authinfo
**** Language Servers **** Language Servers
#+begin_src emacs-lisp #+begin_src emacs-lisp
(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))
:hook (lsp-mode . sakomacs/lsp-mode-setup) (use-package lsp-mode
:commands (lsp lsp-deferred)
(use-package lsp-mode :hook (lsp-mode . sakomacs/lsp-mode-setup)
:commands (lsp lsp-deferred) :init
:hook (lsp-mode . sakomacs/lsp-mode-setup) (setq lsp-keymap-prefix "C-c l")
:init :config
(setq lsp-keymap-prefix "C-c l") (lsp-enable-which-key-integration t))
:config
(lsp-enable-which-key-integration t))
#+end_src #+end_src
**** Better lsp mode ui **** Better lsp mode ui
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package lsp-ui (use-package lsp-ui
:hook (lsp-mode . lsp-ui-mode) :hook (lsp-mode . lsp-ui-mode)
:custom
(lsp-ui-doc-position 'bottom))
#+end_src #+end_src
**** Languages **** Languages
***** Typescript ***** Typescript

View file

@ -21,7 +21,7 @@
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) (global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; Font ;; Font
(set-face-attribute `default nil :font "JetBrains Mono" :height 125) (set-face-attribute `default nil :font "JetBrains Mono" :height 100)
;; Package related stuqff ;; Package related stuqff
(require `package) (require `package)
@ -307,23 +307,19 @@
(setq auth-sources '("~/.authinfo")) (setq auth-sources '("~/.authinfo"))
(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))
:hook (lsp-mode . sakomacs/lsp-mode-setup) (use-package lsp-mode
:commands (lsp lsp-deferred)
(use-package lsp-mode :hook (lsp-mode . sakomacs/lsp-mode-setup)
:commands (lsp lsp-deferred) :init
:hook (lsp-mode . sakomacs/lsp-mode-setup) (setq lsp-keymap-prefix "C-c l")
:init :config
(setq lsp-keymap-prefix "C-c l") (lsp-enable-which-key-integration t))
:config
(lsp-enable-which-key-integration t))
(use-package lsp-ui (use-package lsp-ui
:hook (lsp-mode . lsp-ui-mode) :hook (lsp-mode . lsp-ui-mode)
:custom
(lsp-ui-doc-position 'bottom))
(use-package js2-mode (use-package js2-mode
:mode "\\.js\\'" :mode "\\.js\\'"