Use indent level of 2 in js/json files
This commit is contained in:
parent
f024fc845e
commit
41677f6be2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user