From 511793cba498f52b0f92904965ea5c9afa8b6ea4 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 18 Jun 2026 12:06:20 +0100 Subject: Reduce Arch package surface --- dot_config/nvim/lua/plugins/treesitter.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dot_config/nvim/lua/plugins/treesitter.lua') diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index 4f3ad31..0cba10f 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -1,5 +1,15 @@ require("treewalker").setup({}) +-- nvim-treesitter's main branch shells out to tree-sitter, whose Rust cc crate +-- respects CC. On the Arch host, Home Manager sets this to a Nix compiler +-- wrapper so parser builds keep working without global base-devel. +if + (vim.env.CC == nil or vim.env.CC == "") + and vim.env.NVIM_TREESITTER_CC ~= nil +then + vim.env.CC = vim.env.NVIM_TREESITTER_CC +end + vim.keymap.set( { "n", "v" }, "", -- cgit v1.3.1