diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-01 20:33:55 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-01 22:21:16 +0200 |
| commit | 412752130d52717860ec6dd426e9c02dbf1338ef (patch) | |
| tree | e0d6d74cab7283c77059d3a6a608d3efa13d2164 | |
| parent | 2a073f760caf6b1611ce39815d2fdf66c6967147 (diff) | |
docs(install): explain how to use a proxy for download
| -rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -480,3 +480,25 @@ To avoid these kind of errors, please use `setlocal` instead of `set` for the re This is because of `rtp` management in `nvim`, adding `packadd nvim-treesitter` should fix the issue. + +#### I want to use Git instead of curl for downloading the parsers + +In your Lua config: + +```lua +require("nvim-treesitter.install").prefer_git = true +``` + +#### I want to use a HTTP proxy for downloading the parsers + +You can either configure curl to use additional CLI arguments in your Lua config: +```lua +require("nvim-treesitter.install").command_extra_args = { + curl = { "--proxy", "<proxy url>" }, +} +``` +or you configure git via `.gitconfig` and use git instead of curl + +```lua +require("nvim-treesitter.install").prefer_git = true +``` |
