From d7a9e6244fed25fd4b1bb393cc5a3c1aee24b3bb Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Wed, 11 Jan 2023 16:35:27 +0100 Subject: fix(treesitter): prepend to rtp (#3708) --- lua/lvim/plugins.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/lvim/plugins.lua') diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index 74de79e0..d14a4f0b 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -102,6 +102,9 @@ local core_plugins = { "nvim-treesitter/nvim-treesitter", -- run = ":TSUpdate", config = function() + local utils = require "lvim.utils" + local path = utils.join_paths(get_runtime_dir(), "site", "pack", "lazy", "opt", "nvim-treesitter") + vim.opt.rtp:prepend(path) -- treesitter needs to be before nvim's runtime in rtp require("lvim.core.treesitter").setup() end, }, -- cgit v1.2.3