Skip to content

Commit

Permalink
perf: load keymaps and autocmds on VeryLazy
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 31, 2022
1 parent bce0744 commit 6dd32b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions init.lua
@@ -1,4 +1,10 @@
require("config.options")
require("config.lazy")
require("config.autocmds")
require("config.keymaps")

vim.api.nvim_create_autocmd("User", {
pattern = "VeryLazy",
callback = function()
require("config.autocmds")
require("config.keymaps")
end,
})

0 comments on commit 6dd32b5

Please sign in to comment.