Browse Source

Fix autocmd custom_groups not loaded (#1162)

Dery Rahman Ahaddienata 4 years ago
parent
commit
2e446dc14d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      init.lua

+ 2 - 1
init.lua

@@ -12,6 +12,7 @@ vim.cmd [[
 ]]
 -- vim.opt.rtp:append() instead of vim.cmd ?
 require "default-config"
+local autocmds = require "core.autocmds"
 require("settings").load_options()
 local status_ok, error = pcall(vim.cmd, "luafile ~/.config/lvim/lv-config.lua")
 if not status_ok then
@@ -19,7 +20,7 @@ if not status_ok then
   print(error)
 end
 require("settings").load_commands()
-require("core.autocmds").define_augroups(lvim.autocommands)
+autocmds.define_augroups(lvim.autocommands)
 
 require "keymappings"
 -- require("lsp").setup_default_bindings()