aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorChris Patti <feoh@feoh.org>2024-04-17 14:02:24 -0400
committerGitHub <noreply@github.com>2024-04-17 14:02:24 -0400
commit6d6b3f38c1e243e2fd8f96b6b6eff1720c110cab (patch)
treeceaf8bf716b934d1604d02089ed97f07f33cc9a1 /init.lua
parentfabeb86d8bb6cf1df5e05377f3abca10e4a25a24 (diff)
Fix: #847 - add prefer_git to treesitter config (#856)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 1d922df..cc49351 100644
--- a/init.lua
+++ b/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)