From 1a0707910e27035c98ca08d13213cdd876a3573a Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Mon, 3 Oct 2022 21:33:14 +0100
Subject: [PATCH] fix(nvim): treesitter paths

---
 roles/neovim/files/after/plugin/treesitter.lua | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/roles/neovim/files/after/plugin/treesitter.lua b/roles/neovim/files/after/plugin/treesitter.lua
index 91a4fb1f..7fb9c845 100644
--- a/roles/neovim/files/after/plugin/treesitter.lua
+++ b/roles/neovim/files/after/plugin/treesitter.lua
@@ -3,6 +3,9 @@ if not has_configs then
   return
 end
 
+
+local parser_install_dir = vim.fn.stdpath('data') .. "/site";
+
 configs.setup {
   context_commenting = {
     enable = true,
@@ -51,8 +54,11 @@ configs.setup {
       },
     },
   },
+  parser_install_dir = parser_install_dir,
 }
 
+vim.opt.runtimepath:append(parser_install_dir)
+
 local nmap = require("opdavies.keymap").nmap
 
 nmap { "<leader>th", "<cmd>TSHighlightCapturesUnderCursor<CR>" }