aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-15 14:28:05 +0900
committernsfisis <nsfisis@gmail.com>2024-07-15 14:28:19 +0900
commit6a7904da395cf4d9383629a85e42b621304b00c7 (patch)
tree1014766d4bbb41fc564e8a5d1f971f28fcda2055
parentf42402b5e025bbc2ff3c3d694a6d4919053d1bba (diff)
downloadreparojson-6a7904da395cf4d9383629a85e42b621304b00c7.tar.gz
reparojson-6a7904da395cf4d9383629a85e42b621304b00c7.tar.zst
reparojson-6a7904da395cf4d9383629a85e42b621304b00c7.zip
chore: add editor integration example
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
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).