mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/claude-code: init module
This commit is contained in:
parent
6597afe209
commit
b17c801f2e
2 changed files with 64 additions and 0 deletions
17
plugins/by-name/claude-code/default.nix
Normal file
17
plugins/by-name/claude-code/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "claude-code";
|
||||||
|
packPathName = "claude-code.nvim";
|
||||||
|
package = "claude-code-nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.khaneliman ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
window = {
|
||||||
|
split_ratio = 0.4;
|
||||||
|
position = "vertical";
|
||||||
|
hide_numbers = false;
|
||||||
|
hide_signcolumn = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
47
tests/test-sources/plugins/by-name/claude-code/default.nix
Normal file
47
tests/test-sources/plugins/by-name/claude-code/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.claude-code.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.claude-code = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
window = {
|
||||||
|
split_ratio = 0.3;
|
||||||
|
position = "botright";
|
||||||
|
enter_insert = true;
|
||||||
|
hide_numbers = true;
|
||||||
|
hide_signcolumn = true;
|
||||||
|
};
|
||||||
|
refresh = {
|
||||||
|
enable = true;
|
||||||
|
updatetime = 100;
|
||||||
|
timer_interval = 1000;
|
||||||
|
show_notifications = true;
|
||||||
|
};
|
||||||
|
git = {
|
||||||
|
use_git_root = true;
|
||||||
|
};
|
||||||
|
command = "claude";
|
||||||
|
command_variants = {
|
||||||
|
continue = "--continue";
|
||||||
|
resume = "--resume";
|
||||||
|
verbose = "--verbose";
|
||||||
|
};
|
||||||
|
keymaps = {
|
||||||
|
toggle = {
|
||||||
|
normal = "<C-;>";
|
||||||
|
terminal = "<C-;>";
|
||||||
|
variants = {
|
||||||
|
continue = "<leader>cC";
|
||||||
|
verbose = "<leader>cV";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
window_navigation = true;
|
||||||
|
scrolling = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue