mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-06 11:05:05 +02:00
claude-baseline-1752109170
This commit is contained in:
parent
3a9a4d0944
commit
2692bd2359
3 changed files with 75 additions and 18 deletions
|
@ -109,6 +109,10 @@ end
|
|||
function M.setup(user_config)
|
||||
M.config = merge_config(user_config)
|
||||
|
||||
-- Force reload modules to ensure latest code
|
||||
package.loaded['nvim-claude.hooks'] = nil
|
||||
package.loaded['nvim-claude.diff-review'] = nil
|
||||
|
||||
-- Load submodules
|
||||
M.tmux = require('nvim-claude.tmux')
|
||||
M.git = require('nvim-claude.git')
|
||||
|
@ -129,6 +133,14 @@ function M.setup(user_config)
|
|||
M.commands.setup(M)
|
||||
M.hooks.setup_commands()
|
||||
|
||||
-- Auto-install hooks if we're in a git repository
|
||||
vim.defer_fn(function()
|
||||
if M.utils.get_project_root() then
|
||||
M.hooks.install_hooks()
|
||||
vim.notify('Claude Code hooks auto-installed', vim.log.levels.INFO)
|
||||
end
|
||||
end, 100)
|
||||
|
||||
-- Set up keymappings if enabled
|
||||
if M.config.mappings then
|
||||
require('nvim-claude.mappings').setup(M.config.mappings, M.commands)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue