Skip to content

Commit 49db09d

Browse files
feohcannahum
authored andcommitted
Fix: nvim-lua#847 - add prefer_git to treesitter config (nvim-lua#856)
1 parent c9fafb3 commit 49db09d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ require('lazy').setup({
869869
config = function(_, opts)
870870
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
871871

872+
-- Prefer git instead of curl in order to improve connectivity in some environments
873+
require('nvim-treesitter.install').prefer_git = true
872874
---@diagnostic disable-next-line: missing-fields
873875
require('nvim-treesitter.configs').setup(opts)
874876

0 commit comments

Comments
 (0)