mistweaverco / kulala.nvim

A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️.
https://kulala.mwco.app
MIT License
304 stars 5 forks source link

Empty response when use variable #20

Closed tknightz closed 2 weeks ago

tknightz commented 2 weeks ago

It happens when I use variable in the url, check the screenshot below. (It works fine without variable)

image

My config is copied from the docs:

  {
    "mistweaverco/kulala.nvim",
    ft = "http",
    config = function()
      require("kulala").setup({
        default_view = "body",
        default_env = "dev",
        debug = false,
      })
    end,
  },

curl, wget and jq are installed.

gorillamoe commented 2 weeks ago

When I'm done with the rewrite, your example should also work. Until then, this here should work:

GET {{host}}/api/v2/pokemon/ditto HTTP/1.0
accept: application/json
tknightz commented 2 weeks ago

That's quick! Ok, I need to put the https:// part to the variable to make it work.

@host="https://pokeapi.co/api/v2"

GET {{host}}/api/v2/pokemon/ditto HTTP/1.0
accept: application/json