From 6d3b91ebdf563ee1a52bb2061c20cdf37343f420 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 27 Jan 2026 10:55:07 +0100 Subject: [PATCH] Use ${XDG_CACHE_HOME}/nvim/tree-sitter for treesitter parser caching. --- .config/nvim/lua/plugin/nvim-treesitter.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/nvim/lua/plugin/nvim-treesitter.lua b/.config/nvim/lua/plugin/nvim-treesitter.lua index e19e4a9..99fb29e 100644 --- a/.config/nvim/lua/plugin/nvim-treesitter.lua +++ b/.config/nvim/lua/plugin/nvim-treesitter.lua @@ -7,6 +7,7 @@ return { { config = function() -- Pre-install a few languages we're (very) likely going to use local ts = require('nvim-treesitter') + ts.setup({ install_dir = vim.fn.stdpath('cache') .. '/tree-sitter' }) ts.install({ 'c', 'make', 'bash', 'gitignore', 'editorconfig',