mirror of
https://github.com/arkorty/Neolite.git
synced 2026-03-18 00:57:12 +00:00
Refactor plugin configs for safe import
This commit is contained in:
@@ -68,8 +68,11 @@ packer.startup(function(use)
|
||||
use({
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = function()
|
||||
local ts_update = require("nvim-treesitter.install").update({ with_sync = true })
|
||||
ts_update()
|
||||
local ntsi_ok, nvim_treesitter_install = pcall(require, "nvim-treesitter.install")
|
||||
if ntsi_ok then
|
||||
local ts_update = nvim_treesitter_install.install.update({ with_sync = true })
|
||||
ts_update()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user