--return { -- "greggh/claude-code.nvim", -- dependencies = { -- "nvim-lua/plenary.nvim", -- Required for git operations -- }, -- config = function() -- require("claude-code").setup({ -- window = { -- split_ratio = 0.3, -- Percentage of screen for the terminal window (height for horizontal, width for vertical splits) -- position = "botright", -- Position of the window: "botright", "topleft", "vertical", "rightbelow vsplit", etc. -- enter_insert = true, -- Whether to enter insert mode when opening Claude Code -- hide_numbers = true, -- Hide line numbers in the terminal window -- hide_signcolumn = true, -- Hide the sign column in the terminal window -- }, -- keymaps = { -- toggle = { -- normal = "cc", -- Normal mode keymap for toggling Claude Code, false to disable -- terminal = "", -- Terminal mode keymap for toggling Claude Code, false to disable -- variants = { -- continue = "cC", -- Normal mode keymap for Claude Code with continue flag -- verbose = "cV", -- Normal mode keymap for Claude Code with verbose flag -- }, -- }, -- window_navigation = true, -- Enable window navigation keymaps () -- scrolling = true, -- Enable scrolling keymaps () for page up/down -- }, -- }) -- end, --} return { "coder/claudecode.nvim", config = true, keys = { { "a", nil, desc = "AI/Claude Code" }, { "ac", "ClaudeCode", desc = "Toggle Claude" }, { "af", "ClaudeCodeFocus", desc = "Focus Claude" }, { "ar", "ClaudeCode --resume", desc = "Resume Claude" }, { "aC", "ClaudeCode --continue", desc = "Continue Claude" }, { "as", "ClaudeCodeSend", mode = "v", desc = "Send to Claude" }, { "as", "ClaudeCodeTreeAdd", desc = "Add file", ft = { "NvimTree", "neo-tree", "oil" }, }, -- Diff management { "aa", "ClaudeCodeDiffAccept", desc = "Accept diff" }, { "ad", "ClaudeCodeDiffDeny", desc = "Deny diff" }, }, }