Use indent level of 2 in js/json files

This commit is contained in:
Jeremy Dormitzer 2022-11-04 10:23:29 -04:00
parent f024fc845e
commit 41677f6be2

View File

@ -16,7 +16,9 @@
(use-package json-mode
:commands (json-mode)
:mode ("\\.json\\'"))
:mode ("\\.json\\'")
:custom
(js-indent-level 2))
(use-package jq-mode
:commands (jq-interactively))
@ -25,7 +27,9 @@
:straight (:type built-in)
:defer t
:config
(add-hook 'js-mode-hook #'lsp-deferred))
(add-hook 'js-mode-hook #'lsp-deferred)
:custom
(js-indent-level 2))
;; Make sure we load LSP in React files
(with-eval-after-load 'lsp-clients