diepm / vim-rest-console

A REST console for Vim.
658 stars 54 forks source link

JSON formatter not working #102

Open Besufikad17 opened 10 months ago

Besufikad17 commented 10 months ago

I have installed vim-rest-console in my neovim 0.9.4 setup and followed the readme and reddit threads to setup it but The JSON formatter is not working. When I tried to get the error message using :messages command I get VRC: auto-format error: 127 error. Is there a way to fix it?

vim-rest-console.lua

vim.g.vrc_set_default_mapping = 0
vim.g.vrc_response_default_content_type = 'application/json'
vim.g.vrc_output_buffer_name = '__VRC_OUTPUT.json'
vim.g.vrc_debug = 1
vim.g.vrc_auto_format_resource_patterns = {
 json = 'python3 -m json.tool' 
}

test.rest

# Host
https://dev.to/api

## curl options
--silent

# Headers
Accept: application/json;
Connection: keep-alive
Content-Type: application/json; charset=utf-8

# Method
GET /articles