Skip to content

Commit

Permalink
Remove treesitter prefer_git option (nvim-lua#1061)
Browse files Browse the repository at this point in the history
- It's not safe and can corrupt other git repos
- nvim-treesiter maintainers consider `prefer_git` as deprecated and no
  longer needed.

See nvim-treesitter PR for details: nvim-treesitter/nvim-treesitter#6959
  • Loading branch information
jstrot authored and Lumonde-software committed Sep 29, 2024
1 parent f01e811 commit ddba248
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,6 @@ 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 ddba248

Please sign in to comment.