mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
|
{
|
||
|
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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|