Skip to content

Commit

Permalink
Prefer zig for ts install
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-cbatten committed Jul 11, 2024
1 parent 45cb0f9 commit 3c9b6b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,10 @@ require('lazy').setup({
-- [[ 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
install = require 'nvim-treesitter.install'
install.prefer_git = true
install.compilers = { 'zig' }

---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup(opts)

Expand Down

0 comments on commit 3c9b6b1

Please sign in to comment.