plugins/codex: add module

Closes #4220
This commit is contained in:
Austin Horstman 2026-05-19 22:31:55 -05:00 committed by Gaétan Lepage
parent 31613daf87
commit 30e1116b64
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "codex";
package = "codex-nvim";
description = "A Copilot-style coding assistant integration for Neovim.";
maintainers = [ lib.maintainers.khaneliman ];
dependencies = [
"codex"
];
settingsExample = {
keymaps = {
toggle = "<leader>ac";
};
border = "rounded";
model = "gpt-5-codex";
};
}

View file

@ -0,0 +1,35 @@
{ lib }:
{
empty = {
plugins.codex.enable = true;
};
defaults = {
plugins.codex = {
enable = true;
settings = {
keymaps = {
toggle = lib.nixvim.mkRaw "nil";
quit = "<C-q>";
};
border = "single";
width = 0.8;
height = 0.8;
cmd = "codex";
model = lib.nixvim.mkRaw "nil";
autoinstall = true;
};
};
};
example = {
plugins.codex = {
enable = true;
settings = {
keymaps.toggle = "<leader>ac";
border = "rounded";
model = "gpt-5-codex";
};
};
};
}