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
|
|
|
|
'';
|
2023-06-22 10:45:20 +02:00
|
|
|
openMapping = "<c-\\>";
|
2023-06-13 20:09:09 +05:30
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|