configs/emacs: add typescript to eglot's startup stuff, C-c f to fmt
This commit is contained in:
parent
1cef126bcf
commit
2eccbf67af
@ -187,7 +187,9 @@ auto-completion stuff.
|
|||||||
(add-hook 'go-mode-hook 'eglot-ensure)
|
(add-hook 'go-mode-hook 'eglot-ensure)
|
||||||
(add-hook 'elm-mode-hook 'eglot-ensure)
|
(add-hook 'elm-mode-hook 'eglot-ensure)
|
||||||
(add-hook 'nix-mode-hook 'eglot-ensure)
|
(add-hook 'nix-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'typescript-mode-hook 'eglot-ensure)
|
||||||
(define-key eglot-mode-map (kbd "C-c r") 'eglot-rename)
|
(define-key eglot-mode-map (kbd "C-c r") 'eglot-rename)
|
||||||
|
(define-key eglot-mode-map (kbd "C-c f") 'eglot-format)
|
||||||
(add-hook 'before-save-hook 'my-eglot-organize-imports nil t)
|
(add-hook 'before-save-hook 'my-eglot-organize-imports nil t)
|
||||||
(add-hook 'before-save-hook 'eglot-format-buffer))
|
(add-hook 'before-save-hook 'eglot-format-buffer))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user