Skip to content

Commit

Permalink
Fix: nvim-lua#847 - add prefer_git to treesitter config (nvim-lua#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
feoh authored and orhosko committed Apr 28, 2024
1 parent 6bee000 commit e81e729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,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)
Expand Down

0 comments on commit e81e729

Please sign in to comment.