diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-15 14:28:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-15 14:28:19 +0900 |
| commit | 6a7904da395cf4d9383629a85e42b621304b00c7 (patch) | |
| tree | 1014766d4bbb41fc564e8a5d1f971f28fcda2055 | |
| parent | f42402b5e025bbc2ff3c3d694a6d4919053d1bba (diff) | |
| download | reparojson-6a7904da395cf4d9383629a85e42b621304b00c7.tar.gz reparojson-6a7904da395cf4d9383629a85e42b621304b00c7.tar.zst reparojson-6a7904da395cf4d9383629a85e42b621304b00c7.zip | |
chore: add editor integration example
| -rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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). |
