Closed pierrekttipay closed 4 months ago
Hello
It is failing because your buffer filetype is not set to json
. As I have mentioned in prerequisites section in readme, the filetype of the buffer must be a json
. That's why I have mentioned there :h filetype
command.
Generally you don't need to rename file and set it's extention to .json
, running set filetype=json
inside buffer will be sufficient.
after this commit user will see an agreement prompt and if type y
buffer filetype
will set to json
and then will proceed the requested operation.
closing the issue
I am selecting the simple json object and run the :JsonFormatSelection command
The file is name
laravel.log
and that why it is failing. Repeating the same process after renaming this file:laravel.json
works It's a shame though, we are formatting JSON so we could pass thelang
to treesitter independently of the file extension.