2024-03-24 23:39:49 +01:00
|
|
|
{
|
|
|
|
configs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.nixvim = {
|
|
|
|
plugins.toggleterm = {
|
|
|
|
enable = true;
|
2024-04-22 19:31:00 +02:00
|
|
|
settings = {
|
|
|
|
direction = "horizontal";
|
|
|
|
insert_mappings = false;
|
|
|
|
terminal_mappings = false;
|
|
|
|
open_mapping = ''[[<c-\>]]'';
|
|
|
|
};
|
2024-03-24 23:39:49 +01:00
|
|
|
};
|
|
|
|
keymaps = [
|
|
|
|
{
|
|
|
|
action = "function() Floatingterm:toggle() end";
|
|
|
|
key = "<leader>s";
|
|
|
|
lua = true;
|
|
|
|
mode = "n";
|
|
|
|
options = {
|
|
|
|
silent = true;
|
|
|
|
desc = "toggle scratch terminal";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
extraConfigLuaPre = ''
|
|
|
|
local Terminal = require('toggleterm.terminal').Terminal
|
|
|
|
Floatingterm = Terminal:new({
|
|
|
|
hidden = true,
|
|
|
|
direction = "float"
|
|
|
|
})
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|