rest-nvim / rest.nvim

A fast Neovim http client written in Lua
GNU General Public License v3.0
1.61k stars 142 forks source link

v2 release #300

Closed NTBBloodbath closed 8 months ago

NTBBloodbath commented 8 months ago

This is version 2 of rest.nvim. Please read the following blog posts to learn how they affect you as a plugin user:

The installation instructions with traditional plugin managers like packer.nvim and lazy.nvim are in the README of this branch, however, to facilitate them for testing here I leave them for you (Python is required!) :)

packer.nvim
use {
  "rest-nvim/rest.nvim",
  branch = "dev",
  rocks = { "lua-curl", "nvim-nio", "mimetypes", "xml2lua" },
  config = function()
    require("rest-nvim").setup()
  end,
}
lazy.nvim
{
  "vhyrro/luarocks.nvim",
  config = function()
    require("luarocks").setup({})
  end,
},
{
  "rest-nvim/rest.nvim",
  ft = "http",
  dependencies = { "luarocks.nvim" },
  config = function()
    require("rest-nvim").setup()
  end,
}

[!IMPORTANT]

  1. Note that you will need to install the next branch of the tree-sitter HTTP parser. rest.nvim has a little logic in the setup to set the parser branch to nvim-treesitter, however this might not work in some cases.

  2. If you encounter any problems or bugs, please report them so they can be fixed before doing a merge.

Things missing to merge:

[!NOTE]

The documentation expansion can be finished along the way, since the internal documentation is already ready. However, due to the nature of rest.nvim and all the features it has, an external documentation that can explain everything in detail would be very useful and necessary.


This PR also addresses the following issues:

NTBBloodbath commented 8 months ago

I will merge in approximately 14 hours, the HTTP parser is already updated in nvim-treesitter and that will force pushing here, which is great since the functionality is already implemented :)

Edit: it seems like I had a little free time and some intrusive thoughts so it was merge earlier than planned haha