summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorjedsek <jed-sek@outlook.com>2022-02-06 10:52:01 +0800
committerStephan Seitz <stephan.seitz@fau.de>2022-02-06 12:59:12 +0100
commit767292681ee3ca24d80eafe57698c17784f57985 (patch)
tree2292adc90e0de738cb794d9f008e9174202b525d /README.md
parent1c8719f434626f8cf3c7734a53f9c28f31c30daa (diff)
Update 'troubleshooting' for using mirror.
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index 61099180..0601bfb5 100644
--- a/README.md
+++ b/README.md
@@ -552,3 +552,18 @@ or you can configure git via `.gitconfig` and use git instead of curl
```lua
require("nvim-treesitter.install").prefer_git = true
```
+
+#### I want to use a mirror instead of "https://github.com/"
+
+In your Lua config:
+
+```lua
+for _, config in pairs(require("nvim-treesitter.parsers").get_parser_configs()) do
+ config.install_info.url = config.install_info.url:gsub("https://github.com/", "something else")
+end
+
+require'nvim-treesitter.configs'.setup {
+ --
+ --
+}
+```