Add claude-code plugin and fix nvim-treesitter for neovim 0.12

This commit is contained in:
Alex Selimov 2026-04-09 11:16:19 -04:00
parent beca7d3566
commit 76f2c150ee
3 changed files with 44 additions and 14 deletions

View file

@ -47,4 +47,28 @@ return {
end,
version = "*",
},
{
"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 = "vertical", -- Position of the window: "botright", "topleft", "vertical", "float", etc.
},
keymaps = {
toggle = {
normal = "<leader>cc", -- Normal mode keymap for toggling Claude Code, false to disable
terminal = "<leader>cc", -- 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
},
},
},
})
end,
},
}