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 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
|
||||
(use-package eglot
|
||||
:bind (:map eglot-mode-map
|
||||
("C-c C-d" . eldoc)
|
||||
("C-c C-e" . eglot-rename)
|
||||
("C-c C-o" . python-sort-imports)
|
||||
("C-c C-f" . eglot-format-buffer))
|
||||
:hook ((tsx-ts-mode . eglot-ensure)
|
||||
(typescript-ts-mode . eglot-ensure)))
|
||||
(use-package eglot
|
||||
:bind (:map eglot-mode-map
|
||||
("C-c C-d" . eldoc)
|
||||
("C-c C-e" . eglot-rename)
|
||||
("C-c C-o" . python-sort-imports)
|
||||
("C-c C-f" . eglot-format-buffer))
|
||||
:hook ((tsx-ts-mode . eglot-ensure)
|
||||
(typescript-ts-mode . eglot-ensure)))
|
||||
|
||||
;; makes eglot faster using a rust wrapper, needs to be in PATH
|
||||
(use-package eglot-booster
|
||||
:vc (:fetcher github :repo jdtsmith/eglot-booster)
|
||||
:after eglot
|
||||
:config
|
||||
(eglot-booster-mode))
|
||||
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
|
||||
:convertTabsToSpaces t
|
||||
:semicolons "remove"))))
|
||||
;; makes eglot faster using a rust wrapper, needs to be in PATH
|
||||
(use-package eglot-booster
|
||||
:vc (:fetcher github :repo jdtsmith/eglot-booster)
|
||||
:after eglot
|
||||
:config
|
||||
(eglot-booster-mode))
|
||||
#+end_src
|
||||
|
||||
** Autocompletion
|
||||
|
|
Loading…
Reference in a new issue