diff options
author | LostNeophyte <[email protected]> | 2023-01-11 16:35:27 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-11 16:35:27 +0100 |
commit | d7a9e6244fed25fd4b1bb393cc5a3c1aee24b3bb (patch) | |
tree | 27371191ac390d670ba9665af9d99e3a16342ddd /lua/lvim | |
parent | ccb80e41ee929505c97e682749c74f8db4609d61 (diff) |
fix(treesitter): prepend to rtp (#3708)
Diffstat (limited to 'lua/lvim')
-rw-r--r-- | lua/lvim/plugins.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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, }, |