-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JSON fixer using 'python -m json.tool' #4314
Labels
new tool
Support for new linters, fixers, etc.
Comments
A big advantage of json.tool over alternatives like jsbeautify is that you can sort the keys:
|
idbrii
added a commit
to idbrii/vim-ale
that referenced
this issue
Oct 15, 2024
Resolves dense-analysis#4314. Add a fixer that's built into python for json formatting. Include a couple arguments in docs to make these features more discoverable. Uses stdin-based fixing so you don't need to save the file to fix.
idbrii
added a commit
to idbrii/vim-ale
that referenced
this issue
Oct 17, 2024
Resolves dense-analysis#4314. Add a fixer that's built into python for json formatting. Include a couple arguments in docs to make these features more discoverable. Uses stdin-based fixing so you don't need to save the file to fix.
idbrii
added a commit
to idbrii/vim-ale
that referenced
this issue
Oct 17, 2024
Resolves dense-analysis#4314. Add a fixer that's built into python for json formatting. Include a couple arguments in docs to make these features more discoverable. Uses stdin-based fixing so you don't need to save the file to fix.
idbrii
added a commit
to idbrii/vim-ale
that referenced
this issue
Nov 5, 2024
Resolves dense-analysis#4314. Add a fixer that's built into python for json formatting. Include a couple arguments in docs to make these features more discoverable. Uses stdin-based fixing so you don't need to save the file to fix.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implement something similar to the following code:
ftplugin/json.vim:
let b:ale_fixers = ['json_python_fixer] let b:ale_json_python_fixer_options = '--indent 2'
autoload/ale/fixers/json_python_fixer.vim:
The text was updated successfully, but these errors were encountered: