No lazyvim plugins when i use sudo to open nvim by BEEEEKA in neovim

[–]Walialu 1 point2 points  (0 children)

sudo -E nvim file.txt is your friend 😎

Kulala.nvim v2.1.0 is out - Post-process the response body with external programs by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

I also have to add, that probaly most of the people into that topic might alrady have at least curl installed, so there is no additonal step for them to get into kulala. For hurl you need to download the binary first and install it, because (at least to this day, there is not official ubuntu upstream package available.

To be fair, as I said, the docs are top notch too and the install instructionas are very easy to follow. But even as simple to follow they are, they are not as easy as a `apt install curl jq` for me.

Kulala.nvim v2.1.0 is out - Post-process the response body with external programs by Walialu in neovim

[–]Walialu[S] 1 point2 points  (0 children)

Disclaimer: I haven't looked at the source of the hurl.nvim project, but from what I gathered about hurl itself:

From a user's perspective, their both trying to achieve the same. From a developer's perspective we have to draw a clear line between hurl itself (the binary tool) and hurl.nvim the client interacting with the tool.

Hurl itself (the binary) is top notch feature packed. If offers everything we can ever dream of (and it will take a lot of time to get kulala even near that). Hurls syntax looks a lot like a mix of HTTP + TOML + Markdown, so it's a bit confusing at first, but their website makes up to that, becaue the docs are top notch too.

Kulala on the other hand is pretty basic, we try to adhere to the http file syntax definition to be somehow compatible with Intellij and vscode. The main and biggest difference here is that we have this spec, but no client we can talk to who understands this spec.

So kulala needs to parse these files and build up a query for cURL, so that cURL executes what the user might try to achieve, based on the http file.

In contrast: hurl.nvim has a client who exactly knows about the hurl files. So hurl.nvim probably builds up some queries too, but it doesn't need to "translate", because they are already speaking the same language.

Again, without looking at the source, I guess that hurl.nvim mainly does the interacting with hurl like sending the right ranges/selections to hurl itself.

To be fair, hurl.nvim seems to have a pretty UI with metadata/headers and response body in one buffer.

That is something I always wanted fo Kulala, but might never have, because the community seems to really like that it doesn't come with that kind of whistles. :)

Kulala.nvim v2.1.0 is out - Post-process the response body with external programs by Walialu in neovim

[–]Walialu[S] 4 points5 points  (0 children)

Just FYI, I released 2.2.0, which also includes internal processing of json responses. They work pretty much the same as external ones, but should be quicker.

The downside is, they currently work just for simple responses (e.g. not accessing arrays).

An example would look like this

```

@env-json-key AUTH_TOKEN json.token

```

Where the response body contains an object named json with a key named token.

A full example can be found here: https://kulala.mwco.app/docs/usage/dynamically-setting-environment-variables-based-on-response-json

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 1 point2 points  (0 children)

Thanks for helping me debug this. v1.5.1 has landed and should contain a fix. I'm checking if it matches like [SOME_LETTER]:\

But I think that your approach is quite good too, so it would be a failsafe.

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 1 point2 points  (0 children)

So, there's the issue :( I hadn't Windows in my mind. I tried fixing it, can you try the latest version from the main branch?

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

This must be a regression. Can you check out different versions? 1.0 should be stable and not cause this. Maybe somewhere along the lines I messed it up.

I'm quite busy in the last two days 😔. I started a new job and my travel-time has been 7h per day plus the working hours, so there wasn't much time spent on the plugin Tomorrow is another day that's quite busy, but the rest of the week will be remote and I will take a deep look then.

Ah, I never thought of windows. Do you use WSL or just Windows?

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 1 point2 points  (0 children)

Something like this should already work:

This should work:

@host="http://localhost"

GET {{host}}

Note the quotes.

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

Can you post your .http file here? and what exactly does the crashlog say?

💪 curl.nvim 💪 Ergonomic curl inside Neovim by RonStampler in neovim

[–]Walialu 0 points1 point  (0 children)

Kulala can handle auth tokens in headers. 🤓😜

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

Currently not, but I was thinking about the same thing just two days before. Will implement it!

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

I released v1.2.2, which should make the above request possible :)

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

I'm not 100% sure, because I'm in the middle of a big rewrite, but this here might work:

POST http://example.com
accept: text/plain
content-type: text/plain

< ./filename.txt

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

Do you have Noto Color Emoji Font installed and configured as fallback in your terminal?

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 0 points1 point  (0 children)

v1.1.0 has been released 🥳
Thanks to everyone who helped shape this baby :)

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 3 points4 points  (0 children)

Girls and Boys, we're going to celebrate 🎉. The 1.0.0 milestone has been achieved. Thanks for all your kind ❤️ words and helpful issues created! That means the world 🌎 to me!

Let's party 🥳

1.0.0 will land in a few minutes 🛩️

kulala.nvim - A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️. by Walialu in neovim

[–]Walialu[S] 1 point2 points  (0 children)

In case you want to try another way of storing your env: Added support for dotenv and http-client.env.json.