feat: improve mappings, move custom/init.lua & chadrc.lua
-> custom/example_init.lua & example_chadrc.lua
This commit is contained in:
parent
9961cc0113
commit
ee586047e5
4 changed files with 57 additions and 40 deletions
|
@ -113,21 +113,9 @@ M.misc = function()
|
|||
-- cmd "silent! command! NvChadReload lua require('nvchad').reload_config()"
|
||||
end
|
||||
|
||||
local function user_config_mappings()
|
||||
local custom_maps = config.mappings.custom or ""
|
||||
if type(custom_maps) ~= "table" then
|
||||
return
|
||||
end
|
||||
|
||||
for _, map_table in pairs(custom_maps) do
|
||||
map(unpack(map_table))
|
||||
end
|
||||
end
|
||||
|
||||
non_config_mappings()
|
||||
optional_mappings()
|
||||
required_mappings()
|
||||
user_config_mappings()
|
||||
hooks.run("setup_mappings", map)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue