File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -84,20 +84,14 @@ use {
84
84
### Tree-Sitter parser
85
85
86
86
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.
88
89
89
90
``` 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" }
98
92
```
99
93
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 ` .
101
95
102
96
## Keybindings
103
97
You can’t perform that action at this time.
0 commit comments