Skip to content

Commit

Permalink
docs: edit installation guide about tree-sitter-http
Browse files Browse the repository at this point in the history
  • Loading branch information
boltlessengineer committed Dec 29, 2024
1 parent c4517cc commit 5455092
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,32 @@ CLI.

- Neovim >= 0.10.1
- `curl`
- [tree-sitter-http] (`scm` version)
- [tree-sitter-http] (if you use `lazy.nvim`)

### [rocks.nvim](https://github.com/nvim-neorocks/rocks.nvim) (recommended)

```vim
:Rocks install rest.nvim
:Rocks install tree-sitter-http dev
```

### [lazy.nvim](https://github.com/folke/lazy.nvim)

```lua
{
"rest-nvim/rest.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
opts = function (_, opts)
opts.ensure_installed = opts.ensure_installed or {}
table.insert(opts.ensure_installed, "http")
end,
}
}
```

> [!NOTE]
> you also need to install latest [tree-sitter-http] parser using
> `:TSInstall http`
> You also need to install latest [tree-sitter-http] parser using
> `:TSInstall http` if you are using `lazy.nvim`
<!-- TODO: I'm not sure packer supporst tree-sitter installation via luarocks -->
<!-- ### [packer.nvim](https://github.com/wbthomason/packer.nvim) -->
Expand Down

0 comments on commit 5455092

Please sign in to comment.