回答編集履歴
1
体裁調整
answer
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
-
|
1
|
+
jq自体は単純なCLIプログラムでlspとは関係がなく、記述の設定でも期待した動作はしなさそうです。
|
2
2
|
|
3
|
+
手前味噌ですが、自作のプラグインで以下のような設定をしています。(efm-langserverというcliプログラムの入出力をうまくlspで扱うためのツールを使います)
|
4
|
+
|
5
|
+
同じような設定を、vim-lsp-settingで入れたefm-langserverに設定してあげれば期待した動きになるのではないかと思います。
|
6
|
+
|
3
7
|
```toml
|
4
8
|
jq-format: &jq-format
|
5
9
|
format-command: 'jq .'
|
@@ -11,6 +15,4 @@
|
|
11
15
|
json:
|
12
16
|
- <<: *jq-format
|
13
17
|
```
|
14
|
-
https://github.com/tsuyoshicho/vim-efm-langserver-settings/blob/f5a500fc192118e1d42d53cb503af70f62854fd2/config/efm-langserver/config.yaml#L304-L306
|
18
|
+
https://github.com/tsuyoshicho/vim-efm-langserver-settings/blob/f5a500fc192118e1d42d53cb503af70f62854fd2/config/efm-langserver/config.yaml#L304-L306
|
15
|
-
|
16
|
-
同じような設定を、vim-lsp-settingで入れたefm-langserverに設定してあげれば期待した動きになるのではないかと思います。
|