diff options
author | kylo252 <[email protected]> | 2021-09-13 11:49:53 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2021-09-13 11:49:53 +0200 |
commit | bb130d669b60d0fd4d1a8867387f180d994968c9 (patch) | |
tree | b3ac422f7040c821432a7dc4dbd0c588c2ffda1a /lua/utils/init.lua | |
parent | e10cd48ea2b85158eb830f14629963903be8ad42 (diff) |
fix: don't re-initalize the plugin-loader
Diffstat (limited to 'lua/utils/init.lua')
-rw-r--r-- | lua/utils/init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/utils/init.lua b/lua/utils/init.lua index 095390b1..100ab628 100644 --- a/lua/utils/init.lua +++ b/lua/utils/init.lua @@ -92,9 +92,8 @@ function utils.reload_lv_config() require("keymappings").setup() -- this should be done before loading the plugins vim.cmd("source " .. utils.join_paths(get_runtime_dir(), "lvim", "lua", "plugins.lua")) local plugins = require "plugins" - local plugin_loader = require("plugin-loader").init() utils.toggle_autoformat() - plugin_loader:load { plugins, lvim.plugins } + require("plugin-loader"):load { plugins, lvim.plugins } vim.cmd ":PackerCompile" vim.cmd ":PackerInstall" -- vim.cmd ":PackerClean" |