From a051b51a064eee7e51cc6edd239d544cc04ef2c6 Mon Sep 17 00:00:00 2001 From: Steven Crawford Date: Wed, 13 May 2026 21:46:41 -0500 Subject: [PATCH] updates --- lua/shelbybark/core/options.lua | 2 +- lua/shelbybark/plugins/claude-code.lua | 34 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 lua/shelbybark/plugins/claude-code.lua diff --git a/lua/shelbybark/core/options.lua b/lua/shelbybark/core/options.lua index 2cd41d7..a32ba06 100644 --- a/lua/shelbybark/core/options.lua +++ b/lua/shelbybark/core/options.lua @@ -49,7 +49,7 @@ opt.swapfile = false -- auto-reload files changed outside neovim opt.autoread = true -vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, { +vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "WinEnter", "CursorHold", "CursorHoldI" }, { pattern = "*", command = "checktime", }) diff --git a/lua/shelbybark/plugins/claude-code.lua b/lua/shelbybark/plugins/claude-code.lua new file mode 100644 index 0000000..c20367d --- /dev/null +++ b/lua/shelbybark/plugins/claude-code.lua @@ -0,0 +1,34 @@ +return { + "greggh/claude-code.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + }, + keys = { + { "ac", desc = "Toggle Claude Code" }, + }, + config = function() + require("claude-code").setup({ + window = { + position = "botright vsplit", + split_ratio = 0.38, + enter_insert = true, + hide_numbers = true, + hide_signcolumn = true, + }, + refresh = { + enable = true, + updatetime = 100, + timer_interval = 500, + show_notifications = true, + }, + keymaps = { + toggle = { + normal = "ac", + terminal = "ac", + }, + window_navigation = true, + scrolling = true, + }, + }) + end, +}