move to backup

This commit is contained in:
Dennis 2026-03-03 10:46:08 +01:00
parent 294dc66380
commit a0e3d792a9
182 changed files with 156 additions and 103 deletions

45
bak/modules/nixvim/ai.nix Normal file
View file

@ -0,0 +1,45 @@
{ ... }:
{
plugins.opencode = {
enable = true;
settings = {
provider.enabled = "tmux";
};
};
keymaps = [
{
action.__raw = ''function() require("opencode").ask("@this: ", { submit = true }) end'';
key = "<leader>at";
options.desc = "ask opencode about this";
}
{
action.__raw = ''function() require("opencode").toggle() end'';
key = "<leader>aa";
options.desc = "toggle opencode";
}
{
action.__raw = ''function() require("opencode").select() end'';
key = "<leader>as";
options.desc = "select an opencode action";
}
{
mode = [
"n"
"x"
];
action.__raw = ''function() return require("opencode").operator("@this ") end'';
key = "go";
options.desc = "add range to opencode";
}
{
mode = [
"n"
];
action.__raw = ''function() return require("opencode").operator("@this ") .. "_" end'';
key = "go";
options.desc = "add line to opencode";
}
];
}