feat: toggleterm keybindings

This commit is contained in:
n3oney 2023-04-05 00:06:30 +02:00
commit 0938859c18
No known key found for this signature in database
GPG key ID: C786693DE727850E
2 changed files with 8 additions and 1 deletions

View file

@ -7,6 +7,13 @@ with lib;
with builtins; {
options.vim.terminal.toggleterm = {
enable = mkEnableOption "Enable toggleterm as a replacement to built-in terminal command";
mappings = {
open = mkOption {
type = types.str;
description = "The keymapping to open toggleterm";
default = "<c-t>";
};
};
direction = mkOption {
type = types.enum ["horizontal" "vertical" "tab" "float"];
default = "horizontal";