Follow lazy_load guidelines

This commit is contained in:
nullchilly 2022-08-07 14:28:16 +07:00 committed by Sidhanth Rathod
parent a1565ce15c
commit 724bc1cdf3
2 changed files with 15 additions and 13 deletions

View file

@ -45,6 +45,20 @@ M.on_file_open = function(plugin_name)
}
end
M.packer_cmds = {
"PackerSnapshot",
"PackerSnapshotRollback",
"PackerSnapshotDelete",
"PackerInstall",
"PackerUpdate",
"PackerSync",
"PackerClean",
"PackerCompile",
"PackerStatus",
"PackerProfile",
"PackerLoad",
}
M.treesitter_cmds = {
"TSInstall",
"TSBufEnable",

View file

@ -4,19 +4,7 @@ local plugins = {
["nvim-lua/plenary.nvim"] = { module = "plenary" },
["wbthomason/packer.nvim"] = {
cmd = {
"PackerSnapshot",
"PackerSnapshotRollback",
"PackerSnapshotDelete",
"PackerInstall",
"PackerUpdate",
"PackerSync",
"PackerClean",
"PackerCompile",
"PackerStatus",
"PackerProfile",
"PackerLoad",
},
cmd = require("core.lazy_load").packer_cmds,
config = function()
require "plugins"
end,