Procházet zdrojové kódy

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

Chris Patti před 2 roky
rodič
revize
6d6b3f38c1
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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)