Skip to content

response json body not pretty printed #568

@RafayAhmad7548

Description

@RafayAhmad7548

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin
  • I can reproduce the bug with minimal config below

Neovim Version

NVIM v0.11.6 Build type: RelWithDebInfo LuaJIT 2.1.1767980792 Run "nvim -V1 -v" for more info

Operating system/version

Arch Linux

Actual behavior

json responses are not pretty printed in the output pane.
i found old closed issues on this but they were giving a solution that all related to json filetype which i didnt understand as the output pane is not json filetype

please help

Expected behavior

it should pretty print json

Steps to reproduce

Do any request that responds with json, output wont be pretty printed.

Minimal config for repro (using lazy.nvim)

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "rest-nvim/rest.nvim",
        {
            "nvim-treesitter/nvim-treesitter",
            build = ":TSUpdate",
            main = "nvim-treesitter.configs",
            opts = {
                ensure_installed = { "http" },
                sync_install = false,
                highlight = { enable = true },
                indent = { enable = true },
            },
        },
    },
})

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions