Fix loading of treesitter config

This commit is contained in:
ViViDboarder 2023-06-01 16:52:12 -07:00
parent 5b3f3f51b4
commit 625879cacb
2 changed files with 4 additions and 4 deletions

View File

@ -293,7 +293,7 @@ use({
[">=0.5.0"] = "a189323454d1215c682c7ad7db3e6739d26339c4",
}),
config = function()
utils.require_with_local("plugins.treesitter").setup()
require("utils").require_with_local("plugins.treesitter").setup()
end,
})
use({

View File

@ -1,7 +1,7 @@
-- Configures nvim-treesitter
local M = {}
local ensure_installed = {
M.ensure_installed = {
"bash",
"css",
"dockerfile",
@ -25,7 +25,7 @@ local ensure_installed = {
}
function M.bootstrap()
require("nvim-treesitter.install").ensure_installed_sync(ensure_installed)
require("nvim-treesitter.install").ensure_installed_sync(M.ensure_installed)
end
function M.setup()
@ -38,7 +38,7 @@ function M.setup()
enable = true,
disable = {},
},
ensure_installed = ensure_installed,
ensure_installed = M.ensure_installed,
})
end