refactor: use new mapping format

This commit is contained in:
n3oney 2023-04-11 14:38:27 +02:00
commit 7e566c9687
No known key found for this signature in database
GPG key ID: C786693DE727850E
4 changed files with 56 additions and 17 deletions

View file

@ -9,6 +9,24 @@ with builtins; {
options.vim.assistant.copilot = {
enable = mkEnableOption "Enable GitHub Copilot";
panel = {
position = mkOption {
type = types.enum [
"bottom"
"top"
"left"
"right"
];
default = "bottom";
description = "Panel position";
};
ratio = mkOption {
type = types.float;
default = 0.4;
description = "Panel size";
};
};
mappings = {
panel = {
jumpPrev = mkOption {