feat: Add custom scripts and hook based setup
This commit introduces a hook system that allows the user to add custom modules which can use these hooks to invoke function af specific NvChad events to allow for extending og functionality
This commit is contained in:
parent
ca1ad15ad2
commit
bfc10e6034
6 changed files with 71 additions and 1 deletions
|
|
@ -1,8 +1,8 @@
|
|||
local utils = require "core.utils"
|
||||
local hooks = require "core.hooks"
|
||||
|
||||
local config = utils.load_config()
|
||||
local map = utils.map
|
||||
|
||||
local maps = config.mappings
|
||||
local plugin_maps = maps.plugin
|
||||
|
||||
|
|
@ -116,6 +116,7 @@ M.misc = function()
|
|||
optional_mappings()
|
||||
required_mappings()
|
||||
user_config_mappings()
|
||||
hooks.run("setup_mappings", map)
|
||||
end
|
||||
|
||||
-- below are all plugin related mappings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue