nix-community.nixvim/tests/test-sources/plugins/utils/toggleterm.nix

61 lines
1.3 KiB
Nix
Raw Normal View History

2023-06-13 20:09:09 +05:30
{
empty = {
plugins.toggleterm.enable = true;
};
test = {
plugins.toggleterm = {
enable = true;
size = ''
function(term)
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end
'';
openMapping = "[[<c-\\>]]";
onCreate = "function() end";
onOpen = "function() end";
onClose = "function() end";
onStdout = "function() end";
onStderr = "function() end";
onExit = "function() end";
hideNumbers = false;
shadeFiletypes = [""];
autochdir = true;
highlights = {
Normal.guibg = "#000000";
NormalFloat.link = "#FFFFFF";
};
shadeTerminals = true;
shadingFactor = -40;
startInInsert = false;
insertMappings = false;
terminalMappings = true;
persistSize = false;
direction = "tab";
closeOnExit = false;
shell = "bash";
autoScroll = false;
floatOpts = {
border = "double";
width = 30;
height = 30;
winblend = 5;
zindex = 20;
};
winbar = {
enabled = true;
nameFormatter = ''
function(term)
return term.name + "Test"
end
'';
};
};
};
}