Skip to content

Commit 759bf5b

Browse files
committed
feat: update tree-sitter setup, http parser got merged into nvim-treesitter
1 parent 1600ba2 commit 759bf5b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,14 @@ use {
8484
### Tree-Sitter parser
8585

8686
We are using a Tree-Sitter parser for our HTTP files, in order to get the correct syntax highlighting
87-
you should add this before your tree-sitter setup.
87+
for HTTP files (including JSON bodies) you should add the following into your `ensure_installed` table
88+
in your tree-sitter setup.
8889

8990
```lua
90-
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
91-
parser_configs.http = {
92-
install_info = {
93-
url = "https://github.com/NTBBloodbath/tree-sitter-http",
94-
files = { "src/parser.c" },
95-
branch = "main",
96-
},
97-
}
91+
ensure_installed = { "http", "json" }
9892
```
9993

100-
And then add `"http"` and `"json"` in your `ensure_installed` table or manually run `:TSInstall http json`.
94+
Or manually run `:TSInstall http json`.
10195

10296
## Keybindings
10397

0 commit comments

Comments
 (0)