Some json stuff

This commit is contained in:
Alexander Rosenberg 2025-02-04 18:10:31 -08:00
parent 5a3735644d
commit 44c3cde2c5
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

14
init.el
View File

@ -1277,6 +1277,12 @@ With PROJECT, give diagnostics for all buffers in the current project."
"--header-insertion=never" "--pch-storage=memory"
"--function-arg-placeholders"
"--compile-commands-dir=build"))))
(use-package eglot-inactive-regions
:custom
(eglot-inactive-regions-style 'darken-foreground)
(eglot-inactive-regions-opacity 0.4)
:config
(eglot-inactive-regions-mode 1))
;; LTeX (languagetool)
(require 'ltex-eglot)
@ -1779,10 +1785,16 @@ otherwise, call `bibtex-find-text'."
;; kdl
(require 'kdl-ts-mode)
(with-eval-after-load 'kdl-ts-mode
(setq kdl-ts-mode-indent-offset 4))
;; json
(use-package json-ts-mode
:hook (json-ts-mode . trusted-files-eglot-ensure-if-safe))
:hook (json-ts-mode . trusted-files-eglot-ensure-if-safe)
:custom
(json-ts-mode-indent-offset 4)
:init
(add-to-list 'auto-mode-alist '("\\.jsonc\\'" . json-ts-mode)))
(use-package json-mode)
;; csv