updates
This commit is contained in:
@@ -49,7 +49,7 @@ opt.swapfile = false
|
|||||||
|
|
||||||
-- auto-reload files changed outside neovim
|
-- auto-reload files changed outside neovim
|
||||||
opt.autoread = true
|
opt.autoread = true
|
||||||
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {
|
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "WinEnter", "CursorHold", "CursorHoldI" }, {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
command = "checktime",
|
command = "checktime",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
return {
|
||||||
|
"greggh/claude-code.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>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 = "<leader>ac",
|
||||||
|
terminal = "<leader>ac",
|
||||||
|
},
|
||||||
|
window_navigation = true,
|
||||||
|
scrolling = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user