From 9ddac5a2f168dd9d5839d9ef2195e8748fa86ad2 Mon Sep 17 00:00:00 2001 From: Chris Patti Date: Wed, 17 Apr 2024 11:25:13 -0400 Subject: [PATCH] Fix: #847 This PR configures Treesitter to prefer git rather than expecting curl to be installed. This prevevents a failure mode on WSL where curl is optional. --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 1d922dfc..3d134d50 100644 --- a/init.lua +++ b/init.lua @@ -817,6 +817,7 @@ require('lazy').setup({ config = function(_, opts) -- [[ Configure Treesitter ]] See `:help nvim-treesitter` + require('nvim-treesitter.install').prefer_git = true ---@diagnostic disable-next-line: missing-fields require('nvim-treesitter.configs').setup(opts)