aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/nvim
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-18 12:06:20 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-18 12:06:20 +0100
commit511793cba498f52b0f92904965ea5c9afa8b6ea4 (patch)
treea9dd9af537e4a0cf94c4da14987968b640f3ceb6 /dot_config/nvim
parentf521c2568533e38fb78956de63403917f1fad504 (diff)
downloaddotfiles-511793cba498f52b0f92904965ea5c9afa8b6ea4.tar.gz
dotfiles-511793cba498f52b0f92904965ea5c9afa8b6ea4.tar.bz2
dotfiles-511793cba498f52b0f92904965ea5c9afa8b6ea4.zip
Reduce Arch package surface
Diffstat (limited to 'dot_config/nvim')
-rw-r--r--dot_config/nvim/lua/plugins/treesitter.lua10
1 files changed, 10 insertions, 0 deletions
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" },
"<a-k>",