Follow lazy_load guidelines
This commit is contained in:
parent
a1565ce15c
commit
724bc1cdf3
2 changed files with 15 additions and 13 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue