summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
Diffstat (limited to 'ar')
-rw-r--r--ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua87
-rw-r--r--ar/.config/git/ignore5
-rw-r--r--ar/.config/htop/htoprc4
-rw-r--r--ar/.config/mimeapps.list2
-rwxr-xr-xar/.local/bin/fzffiles2
5 files changed, 30 insertions, 70 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua
index 90b62e2..6a6ac1a 100644
--- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua
+++ b/ar/.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 = {
+ { "<leader>a", nil, desc = "AI/Claude Code" },
+ { "<leader>ac", "<cmd>ClaudeCode<cr>", desc = "Toggle Claude" },
+ { "<leader>af", "<cmd>ClaudeCodeFocus<cr>", desc = "Focus Claude" },
+ { "<leader>ar", "<cmd>ClaudeCode --resume<cr>", desc = "Resume Claude" },
+ { "<leader>aC", "<cmd>ClaudeCode --continue<cr>", desc = "Continue Claude" },
+ { "<leader>am", "<cmd>ClaudeCodeSelectModel<cr>", desc = "Select Claude model" },
+ { "<leader>ab", "<cmd>ClaudeCodeAdd %<cr>", desc = "Add current buffer" },
+ { "<leader>as", "<cmd>ClaudeCodeSend<cr>", mode = "v", desc = "Send to Claude" },
+ {
+ "<leader>as",
+ "<cmd>ClaudeCodeTreeAdd<cr>",
+ desc = "Add file",
+ ft = { "NvimTree", "neo-tree", "oil", "minifiles", "netrw" },
+ },
+ -- Diff management
+ { "<leader>aa", "<cmd>ClaudeCodeDiffAccept<cr>", desc = "Accept diff" },
+ { "<leader>ad", "<cmd>ClaudeCodeDiffDeny<cr>", 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 = "<C-,>", -- Normal mode keymap for toggling Claude Code, false to disable
- terminal = "<C-,>", -- Terminal mode keymap for toggling Claude Code, false to disable
- variants = {
- continue = "<leader>cC", -- Normal mode keymap for Claude Code with continue flag
- verbose = "<leader>cV", -- Normal mode keymap for Claude Code with verbose flag
- },
- },
- window_navigation = true, -- Enable window navigation keymaps (<C-h/j/k/l>)
- scrolling = true, -- Enable scrolling keymaps (<C-f/b>) for page up/down
- },
- })
- end,
},
{
"NickvanDyke/opencode.nvim",
diff --git a/ar/.config/git/ignore b/ar/.config/git/ignore
index 779455d..59d7e31 100644
--- a/ar/.config/git/ignore
+++ b/ar/.config/git/ignore
@@ -1,3 +1,8 @@
+# AI
+.claude
+CLAUDE.md
+**/.claude/settings.local.json
+
# Api/Keys
api.json
credentials
diff --git a/ar/.config/htop/htoprc b/ar/.config/htop/htoprc
index 6df10ed..d26c439 100644
--- a/ar/.config/htop/htoprc
+++ b/ar/.config/htop/htoprc
@@ -40,14 +40,14 @@ column_meter_modes_0=1 1 1
column_meters_1=RightCPUs2 Tasks LoadAverage Uptime
column_meter_modes_1=1 2 2 2
tree_view=0
-sort_key=46
+sort_key=47
tree_sort_key=0
sort_direction=-1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
-.sort_key=PERCENT_CPU
+.sort_key=PERCENT_MEM
.tree_sort_key=PID
.tree_view_always_by_pid=0
.tree_view=0
diff --git a/ar/.config/mimeapps.list b/ar/.config/mimeapps.list
index 2c5c133..ffcfdb8 100644
--- a/ar/.config/mimeapps.list
+++ b/ar/.config/mimeapps.list
@@ -14,7 +14,7 @@ application/x-bittorrent=torrent.desktop;
application/x-xpinstall=librewolf.desktop;firefox.desktop;
application/xhtml+xml=librewolf.desktop;firefox.desktop;
application/vnd.openxmlformats-officedocument.presentationml.presentation=office.desktop;
-application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=csv.desktop;
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=office.desktop;
application/vnd.openxmlformats-officedocument.wordprocessingml.document=office.desktop;
inode/directory=file.desktop;
image/jpeg=img.desktop;
diff --git a/ar/.local/bin/fzffiles b/ar/.local/bin/fzffiles
index 64c7a6d..0c48e17 100755
--- a/ar/.local/bin/fzffiles
+++ b/ar/.local/bin/fzffiles
@@ -85,7 +85,7 @@ files=$(fzf-tmux \
# Check if any files were selected, and exit if not
[ -z "$files" ] && exit 0
-files=$(printf '%s\n' "$files" | sed -e 's/^📄 //' -e 's/^✏️ //' -e 's/^✅ //' -e 's/^❌ //' -e 's/^🔀 //' -e 's/^❓ //')
+files=$(printf '%s\n' "$files" | sed -e 's/^📄 //' -e 's/^✏ //' -e 's/^✅ //' -e 's/^❌ //' -e 's/^🔀 //' -e 's/^❓ //')
if [ -d "$files" ]; then
absolute_files=$(realpath $files)