mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 02:38:38 +02:00
plugins/toggleterm: switch to mkNeovimPlugin
This commit is contained in:
parent
776cc84ad1
commit
c068f78dcd
2 changed files with 356 additions and 225 deletions
|
@ -3,57 +3,134 @@
|
|||
plugins.toggleterm.enable = true;
|
||||
};
|
||||
|
||||
test = {
|
||||
simple-example = {
|
||||
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";
|
||||
settings = {
|
||||
open_mapping = "[[<c-\>]]";
|
||||
direction = "float";
|
||||
float_opts = {
|
||||
border = "curved";
|
||||
width = 130;
|
||||
height = 30;
|
||||
};
|
||||
};
|
||||
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 = ''
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.toggleterm = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
size = ''
|
||||
function(term)
|
||||
return term.name + "Test"
|
||||
if term.direction == "horizontal" then
|
||||
return 15
|
||||
elseif term.direction == "vertical" then
|
||||
return vim.o.columns * 0.4
|
||||
end
|
||||
end
|
||||
'';
|
||||
open_mapping = "[[<c-\>]]";
|
||||
on_create = "function() end";
|
||||
on_open = "function() end";
|
||||
on_close = "function() end";
|
||||
on_stdout = "function() end";
|
||||
on_stderr = "function() end";
|
||||
on_exit = "function() end";
|
||||
hide_numbers = false;
|
||||
shade_filetypes = [""];
|
||||
autochdir = true;
|
||||
highlights = {
|
||||
Normal.guibg = "#000000";
|
||||
NormalFloat.link = "#FFFFFF";
|
||||
};
|
||||
shade_terminals = true;
|
||||
shading_factor = -40;
|
||||
start_in_insert = false;
|
||||
insert_mappings = false;
|
||||
terminal_mappings = true;
|
||||
persist_size = false;
|
||||
persist_mode = false;
|
||||
direction = "tab";
|
||||
close_on_exit = false;
|
||||
shell = "bash";
|
||||
auto_scroll = false;
|
||||
float_opts = {
|
||||
border = "double";
|
||||
width = 30;
|
||||
height = 30;
|
||||
winblend = 5;
|
||||
zindex = 20;
|
||||
};
|
||||
winbar = {
|
||||
enabled = true;
|
||||
name_formatter = ''
|
||||
function(term)
|
||||
return term.name + "Test"
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.toggleterm = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
size = 12;
|
||||
open_mapping = null;
|
||||
on_create = null;
|
||||
on_open = null;
|
||||
on_close = null;
|
||||
on_stdout = null;
|
||||
on_stderr = null;
|
||||
on_exit = null;
|
||||
hide_numbers = true;
|
||||
shade_filetypes = [];
|
||||
autochdir = false;
|
||||
highlights = {
|
||||
NormalFloat.link = "Normal";
|
||||
FloatBorder.link = "Normal";
|
||||
StatusLine.gui = "NONE";
|
||||
StatusLineNC = {
|
||||
cterm = "italic";
|
||||
gui = "NONE";
|
||||
};
|
||||
};
|
||||
shade_terminals = true;
|
||||
shading_factor = -30;
|
||||
start_in_insert = true;
|
||||
insert_mappings = true;
|
||||
terminal_mappings = true;
|
||||
persist_size = true;
|
||||
persist_mode = true;
|
||||
direction = "horizontal";
|
||||
close_on_exit = true;
|
||||
shell.__raw = "vim.o.shell";
|
||||
auto_scroll = true;
|
||||
float_opts = {
|
||||
border = null;
|
||||
width = null;
|
||||
height = null;
|
||||
row = null;
|
||||
col = null;
|
||||
winblend = 0;
|
||||
zindex = null;
|
||||
title_pos = "left";
|
||||
};
|
||||
winbar = {
|
||||
enabled = false;
|
||||
name_formatter = ''
|
||||
function(term)
|
||||
return term.name
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue