breaking change : re-implement custom mappings | simplify it | add whichkey
fixes #1057 , #1047
This commit is contained in:
parent
4fa0b4ae7d
commit
0844431d37
15 changed files with 442 additions and 240 deletions
15
init.lua
15
init.lua
|
|
@ -4,15 +4,16 @@ if present then
|
|||
impatient.enable_profile()
|
||||
end
|
||||
|
||||
local core_modules = {
|
||||
"core.utils",
|
||||
"core.options",
|
||||
"core.autocmds",
|
||||
"core.mappings",
|
||||
local modules = {
|
||||
"utils",
|
||||
"options",
|
||||
"autocmds",
|
||||
"commands",
|
||||
}
|
||||
|
||||
for _, module in ipairs(core_modules) do
|
||||
local ok, err = pcall(require, module)
|
||||
for _, module in ipairs(modules) do
|
||||
local ok, err = pcall(require, "core." .. module)
|
||||
|
||||
if not ok then
|
||||
error("Error loading " .. module .. "\n\n" .. err)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue