From 3a1d03e01b3e666a67da19bd1595b8cd5074b26a Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 16 Jan 2026 19:29:52 +0900 Subject: modified plugins/ai.lua, modified plugins/ai.lua --- .../TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua | 87 ++++++---------------- 1 file changed, 21 insertions(+), 66 deletions(-) (limited to 'mac/.config') diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua index 9f0d55b..0482ce0 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua @@ -260,73 +260,28 @@ return { }, }, { - "greggh/claude-code.nvim", - dependencies = { - "nvim-lua/plenary.nvim", -- Required for git operations + "coder/claudecode.nvim", + dependencies = { "folke/snacks.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" }, + { "am", "ClaudeCodeSelectModel", desc = "Select Claude model" }, + { "ab", "ClaudeCodeAdd %", desc = "Add current buffer" }, + { "as", "ClaudeCodeSend", mode = "v", desc = "Send to Claude" }, + { + "as", + "ClaudeCodeTreeAdd", + desc = "Add file", + ft = { "NvimTree", "neo-tree", "oil", "minifiles", "netrw" }, + }, + -- Diff management + { "aa", "ClaudeCodeDiffAccept", desc = "Accept diff" }, + { "ad", "ClaudeCodeDiffDeny", desc = "Deny diff" }, }, - config = function() - require("claude-code").setup({ - -- Terminal window settings - window = { - split_ratio = 0.3, -- Percentage of screen for the terminal window (height for horizontal, width for vertical splits) - position = "vertical", -- Position of the window: "botright", "topleft", "vertical", "float", 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 - - -- Floating window configuration (only applies when position = "float") - float = { - width = "80%", -- Width: number of columns or percentage string - height = "80%", -- Height: number of rows or percentage string - row = "center", -- Row position: number, "center", or percentage string - col = "center", -- Column position: number, "center", or percentage string - relative = "editor", -- Relative to: "editor" or "cursor" - border = "rounded", -- Border style: "none", "single", "double", "rounded", "solid", "shadow" - }, - }, - -- File refresh settings - refresh = { - enable = true, -- Enable file change detection - updatetime = 100, -- updatetime when Claude Code is active (milliseconds) - timer_interval = 1000, -- How often to check for file changes (milliseconds) - show_notifications = true, -- Show notification when files are reloaded - }, - -- Git project settings - git = { - use_git_root = true, -- Set CWD to git root when opening Claude Code (if in git project) - }, - -- Shell-specific settings - shell = { - separator = "&&", -- Command separator used in shell commands - pushd_cmd = "pushd", -- Command to push directory onto stack (e.g., 'pushd' for bash/zsh, 'enter' for nushell) - popd_cmd = "popd", -- Command to pop directory from stack (e.g., 'popd' for bash/zsh, 'exit' for nushell) - }, - -- Command settings - command = "claude", -- Command used to launch Claude Code - -- Command variants - command_variants = { - -- Conversation management - continue = "--continue", -- Resume the most recent conversation - resume = "--resume", -- Display an interactive conversation picker - - -- Output options - verbose = "--verbose", -- Enable verbose logging with full turn-by-turn output - }, - -- Keymaps - keymaps = { - toggle = { - normal = "", -- 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, }, { "NickvanDyke/opencode.nvim", -- cgit v1.2.3