Update .emacs.d/README.org
This commit is contained in:
parent
e07753d8fa
commit
b4859f807a
1 changed files with 17 additions and 14 deletions
|
@ -229,21 +229,24 @@ I use org-superstar-mode, as it makes headlines and bullets look really nice.
|
||||||
** Eglot
|
** Eglot
|
||||||
Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightweight and more straightforward to setup correctly.
|
Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightweight and more straightforward to setup correctly.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:bind (:map eglot-mode-map
|
:bind (:map eglot-mode-map
|
||||||
("C-c C-d" . eldoc)
|
("C-c C-d" . eldoc)
|
||||||
("C-c C-e" . eglot-rename)
|
("C-c C-e" . eglot-rename)
|
||||||
("C-c C-o" . python-sort-imports)
|
("C-c C-o" . python-sort-imports)
|
||||||
("C-c C-f" . eglot-format-buffer))
|
("C-c C-f" . eglot-format-buffer))
|
||||||
:hook ((tsx-ts-mode . eglot-ensure)
|
:hook ((tsx-ts-mode . eglot-ensure)
|
||||||
(typescript-ts-mode . eglot-ensure)))
|
(typescript-ts-mode . eglot-ensure)))
|
||||||
|
|
||||||
;; makes eglot faster using a rust wrapper, needs to be in PATH
|
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
|
||||||
(use-package eglot-booster
|
:convertTabsToSpaces t
|
||||||
:vc (:fetcher github :repo jdtsmith/eglot-booster)
|
:semicolons "remove"))))
|
||||||
:after eglot
|
;; makes eglot faster using a rust wrapper, needs to be in PATH
|
||||||
:config
|
(use-package eglot-booster
|
||||||
(eglot-booster-mode))
|
:vc (:fetcher github :repo jdtsmith/eglot-booster)
|
||||||
|
:after eglot
|
||||||
|
:config
|
||||||
|
(eglot-booster-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Autocompletion
|
** Autocompletion
|
||||||
|
|
Loading…
Reference in a new issue