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

feat: refactor writing to buffer #260

Closed Rasmus-Bertell closed 11 months ago

Rasmus-Bertell commented 12 months ago

Makes writing to the buffer cleaner and easier to add more blocks. This is pre work for #256 so that it's easier to add the statistics block into the output.

This shouldn't affect the output other than it removes the line #+END between the command and headers on subsequent requests if the buffer wasn't closed. It was leftover since the buffer wasn't cleared properly.