mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-07 07:44:33 +02:00
plugins/toggleterm: init + test
This commit is contained in:
parent
885a746073
commit
15b821db10
3 changed files with 229 additions and 0 deletions
60
tests/test-sources/plugins/utils/toggleterm.nix
Normal file
60
tests/test-sources/plugins/utils/toggleterm.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue