ソースを参照

Fix: #847 - add prefer_git to treesitter config (#856)

Chris Patti 2 年 前
親
コミット
6d6b3f38c1
1 ファイル変更、2 行追加、0 行削除
  1. 2 0
      init.lua

+ 2 - 0
init.lua

@@ -817,6 +817,8 @@ require('lazy').setup({
     config = function(_, opts)
       -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
 
+      -- Prefer git instead of curl in order to improve connectivity in some environments
+      require('nvim-treesitter.install').prefer_git = true
       ---@diagnostic disable-next-line: missing-fields
       require('nvim-treesitter.configs').setup(opts)