diff options
| author | jedsek <jed-sek@outlook.com> | 2022-02-06 10:52:01 +0800 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-06 12:59:12 +0100 |
| commit | 767292681ee3ca24d80eafe57698c17784f57985 (patch) | |
| tree | 2292adc90e0de738cb794d9f008e9174202b525d | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.tar nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.tar.gz nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.tar.bz2 nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.tar.lz nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.tar.xz nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.tar.zst nvim-treesitter-767292681ee3ca24d80eafe57698c17784f57985.zip | |
Update 'troubleshooting' for using mirror.
| -rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 { + -- + -- +} +``` |
