fix(treesitter): prepend to rtp (#3708)

This commit is contained in:
LostNeophyte 2023-01-11 16:35:27 +01:00 committed by GitHub
parent ccb80e41ee
commit d7a9e6244f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},