Skip to content

JSON formatter not working  #102

@Besufikad17

Description

@Besufikad17

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions