From 6a7904da395cf4d9383629a85e42b621304b00c7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 15 Jul 2024 14:28:05 +0900 Subject: chore: add editor integration example --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index bc63244..3afb6a6 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,29 @@ $ echo '{ "foo": 1, "bar": 2, }' | reparojson ``` +## Editor Integration Examples + +### Neovim + nvim-lspconfig + efm-langserver + +```lua +local lspconfig = require('lspconfig') +lspconfig.efm.setup({ + init_options = { documentFormatting = true }, + settings = { + rootMarkers = {".git/"}, + languages = { + json = { + { + formatCommand = "reparojson -q", + formatStdin = true, + }, + }, + }, + } +}) +``` + + ## License See [LICENSE](./LICENSE). -- cgit v1.2.3-70-g09d2