Configure json-ts-mode
This commit is contained in:
parent
3be00c5291
commit
9074976cd9
1 changed files with 7 additions and 7 deletions
|
|
@ -156,6 +156,7 @@
|
||||||
(js-mode . eglot-ensure)
|
(js-mode . eglot-ensure)
|
||||||
(js-ts-mode . eglot-ensure)
|
(js-ts-mode . eglot-ensure)
|
||||||
(json-mode . eglot-ensure)
|
(json-mode . eglot-ensure)
|
||||||
|
(json-ts-mode . eglot-ensure)
|
||||||
(typescript-ts-mode . eglot-ensure)
|
(typescript-ts-mode . eglot-ensure)
|
||||||
(nix-mode . eglot-ensure))
|
(nix-mode . eglot-ensure))
|
||||||
:custom
|
:custom
|
||||||
|
|
@ -169,9 +170,11 @@
|
||||||
:documentOnTypeFormattingProvider
|
:documentOnTypeFormattingProvider
|
||||||
:colorProvider
|
:colorProvider
|
||||||
:foldingRangeProvider))
|
:foldingRangeProvider))
|
||||||
(add-to-list 'eglot-server-programs
|
:config
|
||||||
'((json-mode js-mode js-ts-mode) .
|
(dolist (mode '(json-mode json-ts-mode))
|
||||||
("vscode-json-languageserver" "--stdio"))))
|
(add-to-list 'eglot-server-programs
|
||||||
|
`(,mode . ("vscode-json-language-server" "--stdio"))
|
||||||
|
0)))
|
||||||
|
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
|
@ -345,9 +348,6 @@
|
||||||
(js-chain-indent t)
|
(js-chain-indent t)
|
||||||
(js-indent-level 2))
|
(js-indent-level 2))
|
||||||
|
|
||||||
(use-package json-mode
|
|
||||||
:defer t)
|
|
||||||
|
|
||||||
(use-package ligature
|
(use-package ligature
|
||||||
:after fontaine
|
:after fontaine
|
||||||
:config
|
:config
|
||||||
|
|
@ -707,7 +707,7 @@
|
||||||
typescript
|
typescript
|
||||||
tsx
|
tsx
|
||||||
javascript
|
javascript
|
||||||
jsx))
|
json))
|
||||||
(treesit-auto-add-to-auto-mode-alist 'all)
|
(treesit-auto-add-to-auto-mode-alist 'all)
|
||||||
(global-treesit-auto-mode))
|
(global-treesit-auto-mode))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue