Added packages for JS/TS developement

This commit is contained in:
Andrew Scott 2022-03-25 22:09:02 -04:00
parent 08b9524906
commit db8b9b08a6
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -122,7 +122,6 @@
(load-theme 'everforest-hard-dark))
;; (use-package base16-theme
;; :ensure t
;; :config
;; (load-theme 'gruvbox-dark-soft t))
@ -234,10 +233,13 @@
((c-mode . lsp)
(c++-mode . lsp)
(java-mode . lsp)
(js-mode . lsp)
(latex-mode . lsp)
(python-mode . lsp)
(rust-mode . lsp)
(tex-mode . lsp)
(latex-mode . lsp)
(typescript-mode . lsp)
(web-mode . lsp)
(zig-mode . lsp)
(lsp-mode . lsp-enable-which-key-integration))
:config
@ -302,6 +304,7 @@
;;; Languages
;; C/C++
(setq-default c-default-style "k&r")
(setq-default c-basic-offset 2)
@ -317,6 +320,20 @@
;(use-package lsp-java)
;; JavaScript/TypeScript
(setq js-indent-level 2)
(use-package typescript-mode
:config
(setq typescript-indent-level 2))
(use-package js2-mode
:config
(add-to-list 'magic-mode-alist '("#!/usr/bin/env node" . js2-mode))
(setq js2-mode-show-strict-warnings nil)
:hook (js-mode . js2-minor-mode))
;; LaTeX
(use-package lsp-latex)