Browse Source

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

Chris Patti 2 năm trước cách đây
mục cha
commit
6d6b3f38c1
1 tập tin đã thay đổi với 2 bổ sung và 0 xóa
  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)