mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-19 00:39:36 +02:00
plugins/ui: move to by-name
This commit is contained in:
parent
2456370ab2
commit
91c6b62881
25 changed files with 0 additions and 13 deletions
194
tests/test-sources/plugins/by-name/edgy/default.nix
Normal file
194
tests/test-sources/plugins/by-name/edgy/default.nix
Normal file
|
@ -0,0 +1,194 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.edgy.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.edgy = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
left = [ ];
|
||||
bottom = [ ];
|
||||
right = [ ];
|
||||
top = [ ];
|
||||
options = {
|
||||
left = {
|
||||
size = 30;
|
||||
wo = null;
|
||||
};
|
||||
bottom = {
|
||||
size = 10;
|
||||
wo = null;
|
||||
};
|
||||
right = {
|
||||
size = 30;
|
||||
wo = null;
|
||||
};
|
||||
top = {
|
||||
size = 10;
|
||||
wo = null;
|
||||
};
|
||||
};
|
||||
animate = {
|
||||
enabled = true;
|
||||
fps = 100;
|
||||
cps = 120;
|
||||
on_begin = ''
|
||||
function()
|
||||
vim.g.minianimate_disable = true
|
||||
end
|
||||
'';
|
||||
on_end = ''
|
||||
function()
|
||||
vim.g.minianimate_disable = false
|
||||
end
|
||||
'';
|
||||
spinner = {
|
||||
frames = [
|
||||
"⠋"
|
||||
"⠙"
|
||||
"⠹"
|
||||
"⠸"
|
||||
"⠼"
|
||||
"⠴"
|
||||
"⠦"
|
||||
"⠧"
|
||||
"⠇"
|
||||
"⠏"
|
||||
];
|
||||
interval = 80;
|
||||
};
|
||||
};
|
||||
exit_when_last = false;
|
||||
close_when_all_hidden = true;
|
||||
wo = {
|
||||
winbar = true;
|
||||
winfixwidth = true;
|
||||
winfixheight = false;
|
||||
winhighlight = "WinBar:EdgyWinBar,Normal:EdgyNormal";
|
||||
spell = false;
|
||||
signcolumn = "no";
|
||||
};
|
||||
keys = {
|
||||
q = ''
|
||||
function(win)
|
||||
win:close()
|
||||
end
|
||||
'';
|
||||
"<c-q>" = ''
|
||||
function(win)
|
||||
win:hide()
|
||||
end
|
||||
'';
|
||||
Q = ''
|
||||
function(win)
|
||||
win.view.edgebar:close()
|
||||
end
|
||||
'';
|
||||
"]w" = ''
|
||||
function(win)
|
||||
win:next({ visible = true, focus = true })
|
||||
end
|
||||
'';
|
||||
"[w" = ''
|
||||
function(win)
|
||||
win:prev({ visible = true, focus = true })
|
||||
end
|
||||
'';
|
||||
"]W" = ''
|
||||
function(win)
|
||||
win:next({ pinned = false, focus = true })
|
||||
end
|
||||
'';
|
||||
"[W" = ''
|
||||
function(win)
|
||||
win:prev({ pinned = false, focus = true })
|
||||
end
|
||||
'';
|
||||
"<c-w>>" = ''
|
||||
function(win)
|
||||
win:resize("width", 2)
|
||||
end
|
||||
'';
|
||||
"<c-w><lt>" = ''
|
||||
function(win)
|
||||
win:resize("width", -2)
|
||||
end
|
||||
'';
|
||||
"<c-w>+" = ''
|
||||
function(win)
|
||||
win:resize("height", 2)
|
||||
end
|
||||
'';
|
||||
"<c-w>-" = ''
|
||||
function(win)
|
||||
win:resize("height", -2)
|
||||
end
|
||||
'';
|
||||
"<c-w>=" = ''
|
||||
function(win)
|
||||
win.view.edgebar:equalize()
|
||||
end
|
||||
'';
|
||||
};
|
||||
icons = {
|
||||
closed = " ";
|
||||
open = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.edgy = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
animate.enabled = false;
|
||||
wo = {
|
||||
winbar = false;
|
||||
winfixwidth = false;
|
||||
winfixheight = false;
|
||||
winhighlight = "";
|
||||
spell = false;
|
||||
signcolumn = "no";
|
||||
};
|
||||
bottom = [
|
||||
{
|
||||
ft = "toggleterm";
|
||||
size = 30;
|
||||
filter = ''
|
||||
function(buf, win)
|
||||
return vim.api.nvim_win_get_config(win).relative == ""
|
||||
end
|
||||
'';
|
||||
}
|
||||
{
|
||||
ft = "help";
|
||||
size = 20;
|
||||
filter = ''
|
||||
function(buf)
|
||||
return vim.bo[buf].buftype == "help"
|
||||
end
|
||||
'';
|
||||
}
|
||||
];
|
||||
left = [
|
||||
{
|
||||
title = "nvimtree";
|
||||
ft = "NvimTree";
|
||||
size = 30;
|
||||
}
|
||||
{
|
||||
ft = "Outline";
|
||||
open = "SymbolsOutline";
|
||||
}
|
||||
{ ft = "dapui_scopes"; }
|
||||
{ ft = "dapui_breakpoints"; }
|
||||
{ ft = "dap-repl"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
224
tests/test-sources/plugins/by-name/headlines/default.nix
Normal file
224
tests/test-sources/plugins/by-name/headlines/default.nix
Normal file
|
@ -0,0 +1,224 @@
|
|||
{
|
||||
empty = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
headlines.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
headlines = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
markdown = {
|
||||
query.__raw = ''
|
||||
vim.treesitter.query.parse(
|
||||
"markdown",
|
||||
[[
|
||||
(atx_heading [
|
||||
(atx_h1_marker)
|
||||
(atx_h2_marker)
|
||||
(atx_h3_marker)
|
||||
(atx_h4_marker)
|
||||
(atx_h5_marker)
|
||||
(atx_h6_marker)
|
||||
] @headline)
|
||||
|
||||
(thematic_break) @dash
|
||||
|
||||
(fenced_code_block) @codeblock
|
||||
|
||||
(block_quote_marker) @quote
|
||||
(block_quote (paragraph (inline (block_continuation) @quote)))
|
||||
(block_quote (paragraph (block_continuation) @quote))
|
||||
(block_quote (block_continuation) @quote)
|
||||
]]
|
||||
)
|
||||
'';
|
||||
headline_highlights = [ "Headline" ];
|
||||
bullet_highlights = [
|
||||
"@text.title.1.marker.markdown"
|
||||
"@text.title.2.marker.markdown"
|
||||
"@text.title.3.marker.markdown"
|
||||
"@text.title.4.marker.markdown"
|
||||
"@text.title.5.marker.markdown"
|
||||
"@text.title.6.marker.markdown"
|
||||
];
|
||||
bullets = [
|
||||
"◉"
|
||||
"○"
|
||||
"✸"
|
||||
"✿"
|
||||
];
|
||||
codeblock_highlight = "CodeBlock";
|
||||
dash_highlight = "Dash";
|
||||
dash_string = "-";
|
||||
quote_highlight = "Quote";
|
||||
quote_string = "┃";
|
||||
fat_headlines = true;
|
||||
fat_headline_upper_string = "▃";
|
||||
fat_headline_lower_string = "🬂";
|
||||
};
|
||||
rmd = {
|
||||
query.__raw = ''
|
||||
vim.treesitter.query.parse(
|
||||
"markdown",
|
||||
[[
|
||||
(atx_heading [
|
||||
(atx_h1_marker)
|
||||
(atx_h2_marker)
|
||||
(atx_h3_marker)
|
||||
(atx_h4_marker)
|
||||
(atx_h5_marker)
|
||||
(atx_h6_marker)
|
||||
] @headline)
|
||||
|
||||
(thematic_break) @dash
|
||||
|
||||
(fenced_code_block) @codeblock
|
||||
|
||||
(block_quote_marker) @quote
|
||||
(block_quote (paragraph (inline (block_continuation) @quote)))
|
||||
(block_quote (paragraph (block_continuation) @quote))
|
||||
(block_quote (block_continuation) @quote)
|
||||
]]
|
||||
)
|
||||
'';
|
||||
treesitter_language = "markdown";
|
||||
headline_highlights = [ "Headline" ];
|
||||
bullet_highlights = [
|
||||
"@text.title.1.marker.markdown"
|
||||
"@text.title.2.marker.markdown"
|
||||
"@text.title.3.marker.markdown"
|
||||
"@text.title.4.marker.markdown"
|
||||
"@text.title.5.marker.markdown"
|
||||
"@text.title.6.marker.markdown"
|
||||
];
|
||||
bullets = [
|
||||
"◉"
|
||||
"○"
|
||||
"✸"
|
||||
"✿"
|
||||
];
|
||||
codeblock_highlight = "CodeBlock";
|
||||
dash_highlight = "Dash";
|
||||
dash_string = "-";
|
||||
quote_highlight = "Quote";
|
||||
quote_string = "┃";
|
||||
fat_headlines = true;
|
||||
fat_headline_upper_string = "▃";
|
||||
fat_headline_lower_string = "🬂";
|
||||
};
|
||||
norg = {
|
||||
query = ''
|
||||
vim.treesitter.query.parse(
|
||||
"norg",
|
||||
[[
|
||||
[
|
||||
(heading1_prefix)
|
||||
(heading2_prefix)
|
||||
(heading3_prefix)
|
||||
(heading4_prefix)
|
||||
(heading5_prefix)
|
||||
(heading6_prefix)
|
||||
] @headline
|
||||
|
||||
(weak_paragraph_delimiter) @dash
|
||||
(strong_paragraph_delimiter) @doubledash
|
||||
|
||||
([(ranged_tag
|
||||
name: (tag_name) @_name
|
||||
(#eq? @_name "code")
|
||||
)
|
||||
(ranged_verbatim_tag
|
||||
name: (tag_name) @_name
|
||||
(#eq? @_name "code")
|
||||
)] @codeblock (#offset! @codeblock 0 0 1 0))
|
||||
|
||||
(quote1_prefix) @quote
|
||||
]]
|
||||
)
|
||||
'';
|
||||
headline_highlights = [ "Headline" ];
|
||||
bullet_highlights = [
|
||||
"@neorg.headings.1.prefix"
|
||||
"@neorg.headings.2.prefix"
|
||||
"@neorg.headings.3.prefix"
|
||||
"@neorg.headings.4.prefix"
|
||||
"@neorg.headings.5.prefix"
|
||||
"@neorg.headings.6.prefix"
|
||||
];
|
||||
bullets = [
|
||||
"◉"
|
||||
"○"
|
||||
"✸"
|
||||
"✿"
|
||||
];
|
||||
codeblock_highlight = "CodeBlock";
|
||||
dash_highlight = "Dash";
|
||||
dash_string = "-";
|
||||
doubledash_highlight = "DoubleDash";
|
||||
doubledash_string = "=";
|
||||
quote_highlight = "Quote";
|
||||
quote_string = "┃";
|
||||
fat_headlines = true;
|
||||
fat_headline_upper_string = "▃";
|
||||
fat_headline_lower_string = "🬂";
|
||||
};
|
||||
org = {
|
||||
query.__raw = ''
|
||||
vim.treesitter.query.parse(
|
||||
"org",
|
||||
[[
|
||||
(headline (stars) @headline)
|
||||
|
||||
(
|
||||
(expr) @dash
|
||||
(#match? @dash "^-----+$")
|
||||
)
|
||||
|
||||
(block
|
||||
name: (expr) @_name
|
||||
(#match? @_name "(SRC|src)")
|
||||
) @codeblock
|
||||
|
||||
(paragraph . (expr) @quote
|
||||
(#eq? @quote ">")
|
||||
)
|
||||
]]
|
||||
)
|
||||
'';
|
||||
headline_highlights = [ "Headline" ];
|
||||
bullet_highlights = [
|
||||
"@org.headline.level1"
|
||||
"@org.headline.level2"
|
||||
"@org.headline.level3"
|
||||
"@org.headline.level4"
|
||||
"@org.headline.level5"
|
||||
"@org.headline.level6"
|
||||
"@org.headline.level7"
|
||||
"@org.headline.level8"
|
||||
];
|
||||
bullets = [
|
||||
"◉"
|
||||
"○"
|
||||
"✸"
|
||||
"✿"
|
||||
];
|
||||
codeblock_highlight = "CodeBlock";
|
||||
dash_highlight = "Dash";
|
||||
dash_string = "-";
|
||||
quote_highlight = "Quote";
|
||||
quote_string = "┃";
|
||||
fat_headlines = true;
|
||||
fat_headline_upper_string = "▃";
|
||||
fat_headline_lower_string = "🬂";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
77
tests/test-sources/plugins/by-name/image/default.nix
Normal file
77
tests/test-sources/plugins/by-name/image/default.nix
Normal file
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
empty = {
|
||||
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
|
||||
# headless environment.
|
||||
test.runNvim = false;
|
||||
|
||||
plugins.image.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
|
||||
# headless environment.
|
||||
test.runNvim = false;
|
||||
|
||||
plugins.image = {
|
||||
enable = true;
|
||||
|
||||
backend = "kitty";
|
||||
integrations = {
|
||||
markdown = {
|
||||
enabled = true;
|
||||
clearInInsertMode = false;
|
||||
downloadRemoteImages = true;
|
||||
onlyRenderImageAtCursor = false;
|
||||
filetypes = [
|
||||
"markdown"
|
||||
"vimwiki"
|
||||
];
|
||||
};
|
||||
neorg = {
|
||||
enabled = true;
|
||||
clearInInsertMode = false;
|
||||
downloadRemoteImages = true;
|
||||
onlyRenderImageAtCursor = false;
|
||||
filetypes = [ "norg" ];
|
||||
};
|
||||
syslang = {
|
||||
enabled = true;
|
||||
clearInInsertMode = false;
|
||||
downloadRemoteImages = true;
|
||||
onlyRenderImageAtCursor = false;
|
||||
filetypes = [ "syslang" ];
|
||||
};
|
||||
};
|
||||
maxWidth = null;
|
||||
maxHeight = null;
|
||||
maxWidthWindowPercentage = null;
|
||||
maxHeightWindowPercentage = 50;
|
||||
windowOverlapClearEnabled = false;
|
||||
windowOverlapClearFtIgnore = [
|
||||
"cmp_menu"
|
||||
"cmp_docs"
|
||||
""
|
||||
];
|
||||
editorOnlyRenderWhenFocused = false;
|
||||
tmuxShowOnlyInActiveWindow = false;
|
||||
hijackFilePatterns = [
|
||||
"*.png"
|
||||
"*.jpg"
|
||||
"*.jpeg"
|
||||
"*.gif"
|
||||
"*.webp"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
ueberzug-backend = {
|
||||
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
|
||||
# headless environment.
|
||||
test.runNvim = false;
|
||||
|
||||
plugins.image = {
|
||||
enable = true;
|
||||
backend = "ueberzug";
|
||||
};
|
||||
};
|
||||
}
|
70
tests/test-sources/plugins/by-name/neoscroll/default.nix
Normal file
70
tests/test-sources/plugins/by-name/neoscroll/default.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.neoscroll.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.neoscroll = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mappings = [
|
||||
"<C-u>"
|
||||
"<C-d>"
|
||||
"<C-b>"
|
||||
"<C-f>"
|
||||
"<C-y>"
|
||||
"<C-e>"
|
||||
"zt"
|
||||
"zz"
|
||||
"zb"
|
||||
];
|
||||
hide_cursor = true;
|
||||
stop_eof = true;
|
||||
respect_scrolloff = false;
|
||||
cursor_scrolls_alone = true;
|
||||
easing_function = "quadratic";
|
||||
pre_hook = ''
|
||||
function(info)
|
||||
if info == "cursorline" then
|
||||
vim.wo.cursorline = false
|
||||
end
|
||||
end
|
||||
'';
|
||||
post_hook = ''
|
||||
function(info)
|
||||
if info == "cursorline" then
|
||||
vim.wo.cursorline = true
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.neoscroll = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mappings = [
|
||||
"<C-u>"
|
||||
"<C-d>"
|
||||
"<C-b>"
|
||||
"<C-f>"
|
||||
"<C-y>"
|
||||
"<C-e>"
|
||||
"zt"
|
||||
"zz"
|
||||
"zb"
|
||||
];
|
||||
hide_cursor = true;
|
||||
step_eof = true;
|
||||
respect_scrolloff = false;
|
||||
cursor_scrolls_alone = true;
|
||||
easing_function = null;
|
||||
pre_hook = null;
|
||||
post_hook = null;
|
||||
performance_mode = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
220
tests/test-sources/plugins/by-name/noice/default.nix
Normal file
220
tests/test-sources/plugins/by-name/noice/default.nix
Normal file
|
@ -0,0 +1,220 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.noice.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.noice = {
|
||||
enable = true;
|
||||
cmdline = {
|
||||
enabled = true;
|
||||
view = "cmdline_popup";
|
||||
opts = { };
|
||||
format = {
|
||||
cmdline = {
|
||||
pattern = "^:";
|
||||
icon = "";
|
||||
lang = "vim";
|
||||
};
|
||||
search_down = {
|
||||
kind = "search";
|
||||
pattern = "^/";
|
||||
icon = " ";
|
||||
lang = "regex";
|
||||
};
|
||||
search_up = {
|
||||
kind = "search";
|
||||
pattern = "^%?";
|
||||
icon = " ";
|
||||
lang = "regex";
|
||||
};
|
||||
filter = {
|
||||
pattern = "^:%s*!";
|
||||
icon = "$";
|
||||
lang = "bash";
|
||||
};
|
||||
lua = {
|
||||
pattern = "^:%s*lua%s+";
|
||||
icon = "";
|
||||
lang = "lua";
|
||||
};
|
||||
help = {
|
||||
pattern = "^:%s*he?l?p?%s+";
|
||||
icon = "";
|
||||
};
|
||||
input = { };
|
||||
};
|
||||
};
|
||||
messages = {
|
||||
enabled = true;
|
||||
view = "notify";
|
||||
viewError = "notify";
|
||||
viewWarn = "notify";
|
||||
viewHistory = "messages";
|
||||
viewSearch = "virtualtext";
|
||||
};
|
||||
popupmenu = {
|
||||
enabled = true;
|
||||
backend = "nui";
|
||||
kindIcons = { };
|
||||
};
|
||||
redirect = {
|
||||
view = "popup";
|
||||
filter = {
|
||||
event = "msg_show";
|
||||
};
|
||||
};
|
||||
commands = {
|
||||
history = {
|
||||
view = "split";
|
||||
opts = {
|
||||
enter = true;
|
||||
format = "details";
|
||||
};
|
||||
filter = {
|
||||
any = [
|
||||
{ event = "notify"; }
|
||||
{ error = true; }
|
||||
{ warning = true; }
|
||||
{
|
||||
event = "msg_show";
|
||||
kind = [ "" ];
|
||||
}
|
||||
{
|
||||
event = "lsp";
|
||||
kind = "message";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
last = {
|
||||
view = "popup";
|
||||
opts = {
|
||||
enter = true;
|
||||
format = "details";
|
||||
};
|
||||
filter = {
|
||||
any = [
|
||||
{ event = "notify"; }
|
||||
{ error = true; }
|
||||
{ warning = true; }
|
||||
{
|
||||
event = "msg_show";
|
||||
kind = [ "" ];
|
||||
}
|
||||
{
|
||||
event = "lsp";
|
||||
kind = "message";
|
||||
}
|
||||
];
|
||||
};
|
||||
filter_opts = {
|
||||
count = 1;
|
||||
};
|
||||
};
|
||||
errors = {
|
||||
view = "popup";
|
||||
opts = {
|
||||
enter = true;
|
||||
format = "details";
|
||||
};
|
||||
filter = {
|
||||
error = true;
|
||||
};
|
||||
filter_opts = {
|
||||
reverse = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
notify = {
|
||||
enabled = true;
|
||||
view = "notify";
|
||||
};
|
||||
lsp = {
|
||||
progress = {
|
||||
enabled = true;
|
||||
format = "lsp_progress";
|
||||
formatDone = "lsp_progress_done";
|
||||
throttle = 1000 / 30;
|
||||
view = "mini";
|
||||
};
|
||||
override = {
|
||||
"vim.lsp.util.convert_input_to_markdown_lines" = false;
|
||||
"vim.lsp.util.stylize_markdown" = false;
|
||||
"cmp.entry.get_documentation" = false;
|
||||
};
|
||||
hover = {
|
||||
enabled = true;
|
||||
view = null;
|
||||
opts = { };
|
||||
};
|
||||
signature = {
|
||||
enabled = true;
|
||||
autoOpen = {
|
||||
enabled = true;
|
||||
trigger = true;
|
||||
luasnip = true;
|
||||
throttle = 50;
|
||||
};
|
||||
view = null;
|
||||
opts = { };
|
||||
};
|
||||
message = {
|
||||
enabled = true;
|
||||
view = "notify";
|
||||
opts = { };
|
||||
};
|
||||
documentation = {
|
||||
view = "hover";
|
||||
opts = {
|
||||
lang = "markdown";
|
||||
replace = true;
|
||||
render = "plain";
|
||||
format = [ "{message}" ];
|
||||
win_options = {
|
||||
concealcursor = "n";
|
||||
conceallevel = 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
markdown = {
|
||||
hover = {
|
||||
"|(%S-)|" = "vim.cmd.help";
|
||||
"%[.-%]%((%S-)%)" = ''require("noice.util").open'';
|
||||
};
|
||||
highlights = {
|
||||
"|%S-|" = "@text.reference";
|
||||
"@%S+" = "@parameter";
|
||||
"^%s*(Parameters:)" = "@text.title";
|
||||
"^%s*(Return:)" = "@text.title";
|
||||
"^%s*(See also:)" = "@text.title";
|
||||
"{%S-}" = "@parameter";
|
||||
};
|
||||
};
|
||||
health = {
|
||||
checker = true;
|
||||
};
|
||||
smartMove = {
|
||||
enabled = true;
|
||||
excludedFiletypes = [
|
||||
"cmp_menu"
|
||||
"cmp_docs"
|
||||
"notify"
|
||||
];
|
||||
};
|
||||
presets = {
|
||||
bottom_search = false;
|
||||
command_palette = false;
|
||||
long_message_to_split = false;
|
||||
inc_rename = false;
|
||||
lsp_doc_border = false;
|
||||
};
|
||||
throttle = 1000 / 30;
|
||||
views = { };
|
||||
routes = [ ];
|
||||
status = { };
|
||||
format = { };
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.autosource.enable = true;
|
||||
};
|
||||
}
|
64
tests/test-sources/plugins/by-name/specs/default.nix
Normal file
64
tests/test-sources/plugins/by-name/specs/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.specs.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.specs = {
|
||||
enable = true;
|
||||
settings = {
|
||||
show_jumps = true;
|
||||
min_jump = 30;
|
||||
popup = {
|
||||
delay_ms = 0;
|
||||
inc_ms = 10;
|
||||
blend = 10;
|
||||
width = 10;
|
||||
winhl = "PMenu";
|
||||
fader = ''
|
||||
function(blend, cnt)
|
||||
if cnt > 100 then
|
||||
return 80
|
||||
else return nil end
|
||||
end
|
||||
'';
|
||||
resizer = ''
|
||||
function(width, ccol, cnt)
|
||||
if width-cnt > 0 then
|
||||
return {width+cnt, ccol}
|
||||
else return nil end
|
||||
end
|
||||
'';
|
||||
};
|
||||
ignore_filetypes = { };
|
||||
ignore_buftypes = {
|
||||
nofile = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.specs = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
show_jumps = true;
|
||||
min_jump = 30;
|
||||
popup = {
|
||||
delay_ms = 10;
|
||||
inc_ms = 5;
|
||||
blend = 10;
|
||||
width = 20;
|
||||
winhl = "PMenu";
|
||||
fader = "require('specs').linear_fader";
|
||||
resizer = "require('specs').shrink_resizer";
|
||||
};
|
||||
ignore_filetypes = { };
|
||||
ignore_buftypes = {
|
||||
nofile = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
66
tests/test-sources/plugins/by-name/statuscol/default.nix
Normal file
66
tests/test-sources/plugins/by-name/statuscol/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.statuscol.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.statuscol = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
setopt = true;
|
||||
thousands = false;
|
||||
relculright = false;
|
||||
ft_ignore = null;
|
||||
bt_ignore = null;
|
||||
segments = [
|
||||
{
|
||||
text = [ "%C" ];
|
||||
click = "v:lua.ScFa";
|
||||
}
|
||||
{
|
||||
text = [ "%s" ];
|
||||
click = "v:lua.ScSa";
|
||||
}
|
||||
{
|
||||
text = [
|
||||
{ __raw = "require('statuscol.builtin').lnumfunc"; }
|
||||
" "
|
||||
];
|
||||
condition = [
|
||||
true
|
||||
{ __raw = "require('statuscol.builtin').not_empty"; }
|
||||
];
|
||||
click = "v:lua.ScLa";
|
||||
}
|
||||
{
|
||||
sign = {
|
||||
name = [ ".*" ];
|
||||
};
|
||||
}
|
||||
];
|
||||
clickmod = "c";
|
||||
clickhandlers = {
|
||||
Lnum = "require('statuscol.builtin').lnum_click";
|
||||
FoldClose = "require('statuscol.builtin').foldclose_click";
|
||||
FoldOpen = "require('statuscol.builtin').foldopen_click";
|
||||
FoldOther = "require('statuscol.builtin').foldother_click";
|
||||
DapBreakpointRejected = "require('statuscol.builtin').toggle_breakpoint";
|
||||
DapBreakpoint = "require('statuscol.builtin').toggle_breakpoint";
|
||||
DapBreakpointCondition = "require('statuscol.builtin').toggle_breakpoint";
|
||||
DiagnosticSignError = "require('statuscol.builtin').diagnostic_click";
|
||||
DiagnosticSignHint = "require('statuscol.builtin').diagnostic_click";
|
||||
DiagnosticSignInfo = "require('statuscol.builtin').diagnostic_click";
|
||||
DiagnosticSignWarn = "require('statuscol.builtin').diagnostic_click";
|
||||
GitSignsTopdelete = "require('statuscol.builtin').gitsigns_click";
|
||||
GitSignsUntracked = "require('statuscol.builtin').gitsigns_click";
|
||||
GitSignsAdd = "require('statuscol.builtin').gitsigns_click";
|
||||
GitSignsChange = "require('statuscol.builtin').gitsigns_click";
|
||||
GitSignsChangedelete = "require('statuscol.builtin').gitsigns_click";
|
||||
GitSignsDelete = "require('statuscol.builtin').gitsigns_click";
|
||||
gitsigns_extmark_signs_ = "require('statuscol.builtin').gitsigns_click";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
43
tests/test-sources/plugins/by-name/transparent/default.nix
Normal file
43
tests/test-sources/plugins/by-name/transparent/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.transparent.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.transparent = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
groups = [
|
||||
"Normal"
|
||||
"NormalNC"
|
||||
"Comment"
|
||||
"Constant"
|
||||
"Special"
|
||||
"Identifier"
|
||||
"Statement"
|
||||
"PreProc"
|
||||
"Type"
|
||||
"Underlined"
|
||||
"Todo"
|
||||
"String"
|
||||
"Function"
|
||||
"Conditional"
|
||||
"Repeat"
|
||||
"Operator"
|
||||
"Structure"
|
||||
"LineNr"
|
||||
"NonText"
|
||||
"SignColumn"
|
||||
"CursorLine"
|
||||
"CursorLineNr"
|
||||
"StatusLine"
|
||||
"StatusLineNC"
|
||||
"EndOfBuffer"
|
||||
];
|
||||
extra_groups = [ ];
|
||||
exclude_groups = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
35
tests/test-sources/plugins/by-name/twilight/default.nix
Normal file
35
tests/test-sources/plugins/by-name/twilight/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.twilight.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
twilight = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
dimming = {
|
||||
alpha = 0.25;
|
||||
color = [
|
||||
"Normal"
|
||||
"#ffffff"
|
||||
];
|
||||
term_bg = "#000000";
|
||||
inactive = false;
|
||||
};
|
||||
context = 10;
|
||||
treesitter = true;
|
||||
expand = [
|
||||
"function"
|
||||
"method"
|
||||
"table"
|
||||
"if_statement"
|
||||
];
|
||||
exclude = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
50
tests/test-sources/plugins/by-name/virt-column/default.nix
Normal file
50
tests/test-sources/plugins/by-name/virt-column/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.virt-column.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.virt-column = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
enabled = true;
|
||||
char = "┃";
|
||||
virtcolumn = "";
|
||||
highlight = "NonText";
|
||||
exclude = {
|
||||
filetypes = [
|
||||
"lspinfo"
|
||||
"packer"
|
||||
"checkhealth"
|
||||
"help"
|
||||
"man"
|
||||
"TelescopePrompt"
|
||||
"TelescopeResults"
|
||||
];
|
||||
buftypes = [
|
||||
"nofile"
|
||||
"quickfix"
|
||||
"terminal"
|
||||
"prompt"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.virt-column = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
char = [
|
||||
"#"
|
||||
"!"
|
||||
];
|
||||
virtcolumn = "80,90,100";
|
||||
highlight = "NonText";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
89
tests/test-sources/plugins/by-name/zen-mode/default.nix
Normal file
89
tests/test-sources/plugins/by-name/zen-mode/default.nix
Normal file
|
@ -0,0 +1,89 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.zen-mode.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.zen-mode = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
window = {
|
||||
backdrop = 0.95;
|
||||
width = 120;
|
||||
height = 1;
|
||||
options = { };
|
||||
};
|
||||
plugins = {
|
||||
options = {
|
||||
enabled = true;
|
||||
ruler = false;
|
||||
showcmd = false;
|
||||
laststatus = 0;
|
||||
};
|
||||
|
||||
twilight.enabled = true;
|
||||
gitsigns.enabled = false;
|
||||
tmux.enabled = false;
|
||||
kitty = {
|
||||
enabled = false;
|
||||
font = "+4";
|
||||
};
|
||||
alacritty = {
|
||||
enabled = false;
|
||||
font = "14";
|
||||
};
|
||||
wezterm = {
|
||||
enabled = false;
|
||||
font = "+4";
|
||||
};
|
||||
};
|
||||
on_open = "function(win) end";
|
||||
on_close = "function(win) end";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.zen-mode = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
window = {
|
||||
backdrop = 0.95;
|
||||
width = 0.8;
|
||||
height = 1;
|
||||
options.signcolumn = "no";
|
||||
};
|
||||
plugins = {
|
||||
options = {
|
||||
enabled = true;
|
||||
ruler = false;
|
||||
showcmd = false;
|
||||
};
|
||||
twilight.enabled = false;
|
||||
gitsigns.enabled = true;
|
||||
tmux.enabled = false;
|
||||
};
|
||||
on_open = ''
|
||||
function()
|
||||
require("gitsigns.actions").toggle_current_line_blame()
|
||||
vim.cmd('IBLDisable')
|
||||
vim.opt.relativenumber = false
|
||||
vim.opt.signcolumn = "no"
|
||||
require("gitsigns.actions").refresh()
|
||||
end
|
||||
'';
|
||||
on_close = ''
|
||||
function()
|
||||
require("gitsigns.actions").toggle_current_line_blame()
|
||||
vim.cmd('IBLEnable')
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "yes:2"
|
||||
require("gitsigns.actions").refresh()
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue