mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-15 21:41:11 +01:00
parent
138a387afb
commit
e87e4b1812
2 changed files with 204 additions and 0 deletions
35
plugins/by-name/sidekick/default.nix
Normal file
35
plugins/by-name/sidekick/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "sidekick";
|
||||
package = "sidekick-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.khaneliman ];
|
||||
|
||||
dependencies = [
|
||||
"claude-code"
|
||||
"copilot"
|
||||
"gemini"
|
||||
"opencode"
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
assertions = lib.nixvim.mkAssertions "plugins.sidekick" {
|
||||
assertion = config.plugins.copilot-lua.enable || config.lsp.servers.copilot.enable;
|
||||
message = "sidekick requires either copilot-lua (${options.plugins.copilot-lua.enable}) or copilot LSP (${options.lsp.servers}.copilot.enable) to be enabled";
|
||||
};
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
cli = {
|
||||
mux = {
|
||||
backend = "zellij";
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue