mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 03:04:34 +02:00
plugins/languages: move to by-name
This commit is contained in:
parent
9d323f3ec7
commit
b1d0959bc9
71 changed files with 19 additions and 36 deletions
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
empty = {
|
||||
plugins = {
|
||||
lsp.enable = true;
|
||||
clangd-extensions.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins = {
|
||||
lsp.enable = true;
|
||||
|
||||
clangd-extensions = {
|
||||
enable = true;
|
||||
|
||||
enableOffsetEncodingWorkaround = true;
|
||||
inlayHints = {
|
||||
inline = ''vim.fn.has("nvim-0.10") == 1'';
|
||||
onlyCurrentLine = false;
|
||||
onlyCurrentLineAutocmd = "CursorHold";
|
||||
showParameterHints = true;
|
||||
parameterHintsPrefix = "<- ";
|
||||
otherHintsPrefix = "=> ";
|
||||
maxLenAlign = false;
|
||||
maxLenAlignPadding = 1;
|
||||
rightAlign = false;
|
||||
rightAlignPadding = 7;
|
||||
highlight = "Comment";
|
||||
priority = 100;
|
||||
};
|
||||
ast = {
|
||||
roleIcons = {
|
||||
type = "🄣";
|
||||
declaration = "🄓";
|
||||
expression = "🄔";
|
||||
statement = ";";
|
||||
specifier = "🄢";
|
||||
templateArgument = "🆃";
|
||||
};
|
||||
kindIcons = {
|
||||
compound = "🄲";
|
||||
recovery = "🅁";
|
||||
translationUnit = "🅄";
|
||||
packExpansion = "🄿";
|
||||
templateTypeParm = "🅃";
|
||||
templateTemplateParm = "🅃";
|
||||
templateParamObject = "🅃";
|
||||
};
|
||||
highlights = {
|
||||
detail = "Comment";
|
||||
};
|
||||
};
|
||||
memoryUsage = {
|
||||
border = "none";
|
||||
};
|
||||
symbolInfo = {
|
||||
border = "none";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
190
tests/test-sources/plugins/by-name/cmake-tools/default.nix
Normal file
190
tests/test-sources/plugins/by-name/cmake-tools/default.nix
Normal file
|
@ -0,0 +1,190 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.cmake-tools.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.cmake-tools = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
cmake_command = "cmake";
|
||||
ctest_command = "ctest";
|
||||
cmake_regenerate_on_save = true;
|
||||
cmake_generate_options = {
|
||||
"-DCMAKE_EXPORT_COMPILE_COMMANDS" = 1;
|
||||
};
|
||||
cmake_build_options = { };
|
||||
cmake_build_directory = "out/\${variant:buildType}";
|
||||
cmake_soft_link_compile_commands = true;
|
||||
cmake_compile_commands_from_lsp = false;
|
||||
cmake_kits_path = null;
|
||||
|
||||
cmake_variants_message = {
|
||||
short = {
|
||||
show = true;
|
||||
};
|
||||
long = {
|
||||
show = true;
|
||||
max_length = 40;
|
||||
};
|
||||
};
|
||||
|
||||
cmake_dap_configuration = {
|
||||
name = "cpp";
|
||||
type = "codelldb";
|
||||
request = "launch";
|
||||
stopOnEntry = false;
|
||||
runInTerminal = true;
|
||||
console = "integratedTerminal";
|
||||
};
|
||||
|
||||
cmake_executor = {
|
||||
name = "quickfix";
|
||||
opts = { };
|
||||
default_opts = {
|
||||
quickfix = {
|
||||
show = "always";
|
||||
position = "belowright";
|
||||
size = 10;
|
||||
encoding = "utf-8";
|
||||
auto_close_when_success = true;
|
||||
};
|
||||
|
||||
toggleterm = {
|
||||
direction = "float";
|
||||
close_on_exit = false;
|
||||
auto_scroll = true;
|
||||
};
|
||||
|
||||
overseer = {
|
||||
new_task_opts = {
|
||||
strategy.__unkeyed-1 = "terminal";
|
||||
};
|
||||
on_new_task.__raw = ''
|
||||
function(task) end
|
||||
'';
|
||||
};
|
||||
|
||||
terminal = {
|
||||
name = "Main Terminal";
|
||||
prefix_name = "[CMakeTools]: ";
|
||||
split_direction = "horizontal";
|
||||
split_size = 11;
|
||||
|
||||
single_terminal_per_instance = true;
|
||||
single_terminal_per_tab = true;
|
||||
keep_terminal_static_location = true;
|
||||
|
||||
start_insert = false;
|
||||
focus = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cmake_runner = {
|
||||
name = "terminal";
|
||||
opts = { };
|
||||
default_opts = {
|
||||
quickfix = {
|
||||
show = "always";
|
||||
position = "belowright";
|
||||
size = 10;
|
||||
encoding = "utf-8";
|
||||
auto_close_when_success = true;
|
||||
};
|
||||
|
||||
toggleterm = {
|
||||
direction = "float";
|
||||
close_on_exit = false;
|
||||
auto_scroll = true;
|
||||
};
|
||||
|
||||
overseer = {
|
||||
new_task_opts = {
|
||||
strategy.__unkeyed-1 = "terminal";
|
||||
};
|
||||
on_new_task.__raw = ''
|
||||
function(task) end
|
||||
'';
|
||||
};
|
||||
|
||||
terminal = {
|
||||
name = "Main Terminal";
|
||||
prefix_name = "[CMakeTools]: ";
|
||||
split_direction = "horizontal";
|
||||
split_size = 11;
|
||||
single_terminal_per_instance = true;
|
||||
single_terminal_per_tab = true;
|
||||
keep_terminal_static_location = true;
|
||||
start_insert = false;
|
||||
focus = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cmake_notifications = {
|
||||
runner.enabled = true;
|
||||
executor.enabled = true;
|
||||
spinner = [
|
||||
"⠋"
|
||||
"⠙"
|
||||
"⠹"
|
||||
"⠸"
|
||||
"⠼"
|
||||
"⠴"
|
||||
"⠦"
|
||||
"⠧"
|
||||
"⠇"
|
||||
"⠏"
|
||||
];
|
||||
refresh_rate_ms = 100;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.toggleterm.enable = true;
|
||||
|
||||
plugins.cmake-tools = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
cmake_regenerate_on_save = false;
|
||||
cmake_build_directory = "build/\${variant:buildtype}";
|
||||
cmake_soft_link_compile_commands = false;
|
||||
|
||||
cmake_dap_configuration = {
|
||||
name = "Launch file";
|
||||
type = "codelldb";
|
||||
request = "launch";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
cwd = "\${workspaceFolder}";
|
||||
stopOnEntry = false;
|
||||
};
|
||||
|
||||
cmake_executor.name = "toggleterm";
|
||||
cmake_runner.name = "toggleterm";
|
||||
|
||||
cmake_notifications = {
|
||||
spinner = [
|
||||
"▱▱▱▱▱▱▱"
|
||||
"▰▱▱▱▱▱▱"
|
||||
"▰▰▱▱▱▱▱"
|
||||
"▰▰▰▱▱▱▱"
|
||||
"▰▰▰▰▱▱▱"
|
||||
"▰▰▰▰▰▱▱"
|
||||
"▰▰▰▰▰▰▱"
|
||||
"▰▰▰▰▰▰▰"
|
||||
];
|
||||
refresh_rate_ms = 80;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
48
tests/test-sources/plugins/by-name/debugprint/default.nix
Normal file
48
tests/test-sources/plugins/by-name/debugprint/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.debugprint.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.debugprint = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
keymaps = {
|
||||
normal = {
|
||||
plain_below = "g?p";
|
||||
plain_above = "g?P";
|
||||
variable_below = "g?v";
|
||||
variable_above = "g?V";
|
||||
variable_below_alwaysprompt.__raw = "nil";
|
||||
variable_above_alwaysprompt.__raw = "nil";
|
||||
textobj_below = "g?o";
|
||||
textobj_above = "g?O";
|
||||
toggle_comment_debug_prints.__raw = "nil";
|
||||
delete_debug_prints.__raw = "nil";
|
||||
};
|
||||
visual = {
|
||||
variable_below = "g?v";
|
||||
variable_above = "g?V";
|
||||
};
|
||||
};
|
||||
commands = {
|
||||
toggle_comment_debug_prints = "ToggleCommentDebugPrints";
|
||||
delete_debug_prints = "DeleteDebugPrints";
|
||||
};
|
||||
move_to_debugline = false;
|
||||
display_counter = true;
|
||||
display_snippet = true;
|
||||
filetypes = {
|
||||
python = {
|
||||
left = "print(f'";
|
||||
right = "')";
|
||||
mid_var = "{";
|
||||
right_var = "}')";
|
||||
};
|
||||
};
|
||||
print_tag = "DEBUGPRINT";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
26
tests/test-sources/plugins/by-name/glow/default.nix
Normal file
26
tests/test-sources/plugins/by-name/glow/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
empty = {
|
||||
plugins.glow.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.glow = {
|
||||
enable = true;
|
||||
|
||||
glowPackage = pkgs.glow;
|
||||
|
||||
settings = {
|
||||
glow_path.__raw = "vim.fn.exepath('glow')";
|
||||
install_path = "~/.local/bin";
|
||||
border = "shadow";
|
||||
style = "dark";
|
||||
pager = false;
|
||||
width = 80;
|
||||
height = 100;
|
||||
width_ratio = 0.7;
|
||||
height_ratio = 0.7;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
18
tests/test-sources/plugins/by-name/godot/default.nix
Normal file
18
tests/test-sources/plugins/by-name/godot/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
empty = {
|
||||
# Godot is only available on Linux
|
||||
plugins.godot.enable = pkgs.stdenv.isLinux;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.godot = {
|
||||
# Godot is only available on Linux
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
|
||||
settings = {
|
||||
executable = "godot";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.haskell-scope-highlighting.enable = true;
|
||||
plugins.treesitter.enable = true;
|
||||
};
|
||||
|
||||
testHaskellHighlights = {
|
||||
plugins.haskell-scope-highlighting.enable = true;
|
||||
plugins.treesitter.enable = true;
|
||||
highlight = {
|
||||
HaskellCurrentScope.bg = "black";
|
||||
HaskellParentScope1.bg = "black";
|
||||
HaskellParentScope2.bg = "black";
|
||||
HaskellParentScope3.bg = "black";
|
||||
HaskellVariableDeclarationWithinScope.bg = "black";
|
||||
HaskellVariableDeclaredWithinFile.bg = "black";
|
||||
HaskellVariableDeclaredWithinParent1.bg = "black";
|
||||
HaskellVariableDeclaredWithinParent2.bg = "black";
|
||||
HaskellVariableDeclaredWithinParent3.bg = "black";
|
||||
HaskellVariableDeclaredWithinScope.bg = "black";
|
||||
HaskellVariableNotDeclaredWithinFile.bg = "black";
|
||||
};
|
||||
};
|
||||
}
|
5
tests/test-sources/plugins/by-name/helm/default.nix
Normal file
5
tests/test-sources/plugins/by-name/helm/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.helm.enable = true;
|
||||
};
|
||||
}
|
27
tests/test-sources/plugins/by-name/julia-cell/default.nix
Normal file
27
tests/test-sources/plugins/by-name/julia-cell/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.julia-cell.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.julia-cell = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
delimit_cells_by = "marks";
|
||||
tag = "##";
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
|
||||
executeCell = "a";
|
||||
executeCellJump = "b";
|
||||
run = "c";
|
||||
clear = "d";
|
||||
prevCell = "e";
|
||||
nextCell = "f";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
35
tests/test-sources/plugins/by-name/jupytext/default.nix
Normal file
35
tests/test-sources/plugins/by-name/jupytext/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.jupytext.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.jupytext = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
style = "hydrogen";
|
||||
output_extension = "auto";
|
||||
force_ft = null;
|
||||
custom_language_formatting = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.jupytext = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
style = "light";
|
||||
output_extension = "auto";
|
||||
force_ft = null;
|
||||
custom_language_formatting.python = {
|
||||
extension = "md";
|
||||
style = "markdown";
|
||||
force_ft = "markdown";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
85
tests/test-sources/plugins/by-name/lean/default.nix
Normal file
85
tests/test-sources/plugins/by-name/lean/default.nix
Normal file
|
@ -0,0 +1,85 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lean.enable = true;
|
||||
};
|
||||
|
||||
# Enable the `leanls` LSP directly from `plugins.lsp`. This implies explicitly disabling the lsp
|
||||
# in the `lean` plugin configuration.
|
||||
lspDisabled = {
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
|
||||
servers.leanls.enable = true;
|
||||
};
|
||||
|
||||
lean = {
|
||||
enable = true;
|
||||
|
||||
lsp.enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins = {
|
||||
lsp.enable = true;
|
||||
|
||||
lean = {
|
||||
enable = true;
|
||||
|
||||
lsp = { };
|
||||
ft = {
|
||||
default = "lean";
|
||||
nomodifiable = null;
|
||||
};
|
||||
abbreviations = {
|
||||
enable = true;
|
||||
extra = {
|
||||
wknight = "♘";
|
||||
};
|
||||
leader = "\\";
|
||||
};
|
||||
mappings = false;
|
||||
infoview = {
|
||||
autoopen = true;
|
||||
autopause = false;
|
||||
width = 50;
|
||||
height = 20;
|
||||
horizontalPosition = "bottom";
|
||||
separateTab = false;
|
||||
indicators = "auto";
|
||||
lean3 = {
|
||||
showFilter = true;
|
||||
mouseEvents = false;
|
||||
};
|
||||
showProcessing = true;
|
||||
showNoInfoMessage = false;
|
||||
useWidgets = true;
|
||||
mappings = {
|
||||
K = "click";
|
||||
"<CR>" = "click";
|
||||
gd = "go_to_def";
|
||||
gD = "go_to_decl";
|
||||
gy = "go_to_type";
|
||||
I = "mouse_enter";
|
||||
i = "mouse_leave";
|
||||
"<Esc>" = "clear_all";
|
||||
C = "clear_all";
|
||||
"<LocalLeader><Tab>" = "goto_last_window";
|
||||
};
|
||||
};
|
||||
progressBars = {
|
||||
enable = true;
|
||||
priority = 10;
|
||||
};
|
||||
stderr = {
|
||||
enable = true;
|
||||
height = 5;
|
||||
onLines = "function(lines) vim.notify(lines) end";
|
||||
};
|
||||
lsp3 = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
43
tests/test-sources/plugins/by-name/ledger/default.nix
Normal file
43
tests/test-sources/plugins/by-name/ledger/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.ledger.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.ledger = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
bin = null;
|
||||
is_hledger = null;
|
||||
extra_options = "";
|
||||
accounts_cmd = null;
|
||||
descriptions_cmd = null;
|
||||
maxwidth = 0;
|
||||
fillstring = " ";
|
||||
detailed_first = 1;
|
||||
fold_blanks = 0;
|
||||
decimal_sep = ".";
|
||||
align_last = 0;
|
||||
align_at = 60;
|
||||
default_commodity = "";
|
||||
align_commodity = 0;
|
||||
commodity_before = 1;
|
||||
commodity_sep = "";
|
||||
commodity_spell = 0;
|
||||
date_format = "%Y/%m/%d";
|
||||
main = "%";
|
||||
winpos = "B";
|
||||
qf_register_format = null;
|
||||
qf_reconcile_format = null;
|
||||
use_location_list = 0;
|
||||
qf_vertical = 0;
|
||||
qf_size = 10;
|
||||
qf_hide_file = 1;
|
||||
cleared_string = "Cleared: ";
|
||||
pending_string = "Cleared or pending: ";
|
||||
target_string = "Difference from target: ";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
71
tests/test-sources/plugins/by-name/lint/default.nix
Normal file
71
tests/test-sources/plugins/by-name/lint/default.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lint.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.lint = {
|
||||
enable = true;
|
||||
|
||||
lintersByFt = {
|
||||
text = [ "vale" ];
|
||||
json = [ "jsonlint" ];
|
||||
markdown = [ "vale" ];
|
||||
rst = [ "vale" ];
|
||||
ruby = [ "ruby" ];
|
||||
janet = [ "janet" ];
|
||||
inko = [ "inko" ];
|
||||
# As of 2024-03-27, pkgs.graalvm-ce (a dependency of pkgs.clj-kondo) is broken on x86_64-darwin
|
||||
# TODO: re-enable this test when fixed
|
||||
# clojure = ["clj-kondo"];
|
||||
dockerfile = [ "hadolint" ];
|
||||
terraform = [ "tflint" ];
|
||||
};
|
||||
linters = {
|
||||
phpcs.args = [
|
||||
"-q"
|
||||
"--report=json"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
customLinters = {
|
||||
foo = {
|
||||
cmd = "foo_cmd";
|
||||
stdin = true;
|
||||
append_fname = false;
|
||||
args = [ ];
|
||||
stream = "stderr";
|
||||
ignore_exitcode = false;
|
||||
env = {
|
||||
FOO = "bar";
|
||||
};
|
||||
parser = ''
|
||||
require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts)
|
||||
'';
|
||||
};
|
||||
foo2 = {
|
||||
cmd = "foo2_cmd";
|
||||
parser = ''
|
||||
require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts)
|
||||
'';
|
||||
};
|
||||
bar.__raw = ''
|
||||
function()
|
||||
return {
|
||||
cmd = "foo_cmd",
|
||||
stdin = true,
|
||||
append_fname = false,
|
||||
args = {},
|
||||
stream = "stderr",
|
||||
ignore_exitcode = false,
|
||||
env = {
|
||||
["FOO"] = "bar",
|
||||
},
|
||||
parser = require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts),
|
||||
}
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
empty = {
|
||||
plugins = {
|
||||
lsp.enable = true;
|
||||
ltex-extra.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.markdown-preview.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.markdown-preview = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
auto_start = 1;
|
||||
auto_close = 1;
|
||||
refresh_slow = 0;
|
||||
command_for_global = 0;
|
||||
open_to_the_world = 0;
|
||||
open_ip = "";
|
||||
browser = "firefox";
|
||||
echo_preview_url = 1;
|
||||
browser_func = "";
|
||||
preview_options = {
|
||||
mkit = [ ];
|
||||
katex = [ ];
|
||||
uml = [ ];
|
||||
maid = [ ];
|
||||
disable_sync_scroll = 0;
|
||||
sync_scroll_type = "middle";
|
||||
hide_yaml_meta = 1;
|
||||
sequence_diagrams = [ ];
|
||||
flowchart_diagrams = [ ];
|
||||
content_editable = 0;
|
||||
disable_filename = 0;
|
||||
toc = [ ];
|
||||
};
|
||||
markdown_css = "/Users/username/markdown.css";
|
||||
highlight_css.__raw = "vim.fn.expand('~/highlight.css')";
|
||||
port = "8080";
|
||||
page_title = "「\$\{name}」";
|
||||
images_path = "";
|
||||
filetypes = [ "markdown" ];
|
||||
theme = "dark";
|
||||
combine_preview = 0;
|
||||
combine_preview_auto_refresh = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
46
tests/test-sources/plugins/by-name/markview/default.nix
Normal file
46
tests/test-sources/plugins/by-name/markview/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.markview.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.markview = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
buf_ignore = [ "nofile" ];
|
||||
mode = [
|
||||
"n"
|
||||
"no"
|
||||
];
|
||||
hybrid_modes = [ ];
|
||||
callback = {
|
||||
on_enable = # Lua
|
||||
''
|
||||
function(buf, win)
|
||||
vim.wo[window].conceallevel = 2;
|
||||
vim.wo[window].concealcursor = "nc";
|
||||
end
|
||||
'';
|
||||
on_disable = # Lua
|
||||
''
|
||||
function(buf, win)
|
||||
vim.wo[window].conceallevel = 0;
|
||||
vim.wo[window].concealcursor = "";
|
||||
end
|
||||
'';
|
||||
on_mode_change = # Lua
|
||||
''
|
||||
function(buf, win, mode)
|
||||
if vim.list_contains(markview.configuration.modes, mode) then
|
||||
vim.wo[window].conceallevel = 2;
|
||||
else
|
||||
vim.wo[window].conceallevel = 0;
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
5
tests/test-sources/plugins/by-name/nix/default.nix
Normal file
5
tests/test-sources/plugins/by-name/nix/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.nix.enable = true;
|
||||
};
|
||||
}
|
35
tests/test-sources/plugins/by-name/nvim-jdtls/default.nix
Normal file
35
tests/test-sources/plugins/by-name/nvim-jdtls/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
example = {
|
||||
plugins.nvim-jdtls = {
|
||||
enable = true;
|
||||
|
||||
cmd = [
|
||||
"${pkgs.jdt-language-server}/bin/jdt-language-server"
|
||||
"-data"
|
||||
"/dev/null"
|
||||
"-configuration"
|
||||
"/dev/null"
|
||||
];
|
||||
|
||||
rootDir.__raw = "require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'})";
|
||||
|
||||
settings = {
|
||||
java = { };
|
||||
};
|
||||
|
||||
initOptions = {
|
||||
bundles = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dataAndConfiguration = {
|
||||
plugins.nvim-jdtls = {
|
||||
enable = true;
|
||||
|
||||
data = "/path/to/my/project";
|
||||
configuration = "/path/to/configuration";
|
||||
};
|
||||
};
|
||||
}
|
33
tests/test-sources/plugins/by-name/openscad/default.nix
Normal file
33
tests/test-sources/plugins/by-name/openscad/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.openscad.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.openscad = {
|
||||
enable = true;
|
||||
|
||||
fuzzyFinder = "skim";
|
||||
cheatsheetWindowBlend = 15;
|
||||
loadSnippets = false;
|
||||
autoOpen = false;
|
||||
|
||||
keymaps.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
plugins.openscad = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
enable = true;
|
||||
cheatsheetToggle = "<Enter>";
|
||||
helpTrigger = "<A-h>";
|
||||
helpManualTrigger = "<A-m>";
|
||||
execOpenSCADTrigger = "<A-o>";
|
||||
topToggle = "<A-c>";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
26
tests/test-sources/plugins/by-name/orgmode/default.nix
Normal file
26
tests/test-sources/plugins/by-name/orgmode/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.orgmode.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.orgmode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
org_agenda_files = "";
|
||||
org_default_notes_file = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.orgmode = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
org_agenda_files = "~/orgfiles/**/*";
|
||||
org_default_notes_file = "~/orgfiles/refile.org";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
48
tests/test-sources/plugins/by-name/otter/default.nix
Normal file
48
tests/test-sources/plugins/by-name/otter/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
empty = {
|
||||
plugins = {
|
||||
otter.enable = true;
|
||||
# Avoid the warning
|
||||
treesitter.settings.highlight.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins = {
|
||||
# Avoid the warning
|
||||
treesitter.settings.highlight.enable = true;
|
||||
|
||||
otter = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
lsp = {
|
||||
hover = {
|
||||
border = [
|
||||
"╭"
|
||||
"─"
|
||||
"╮"
|
||||
"│"
|
||||
"╯"
|
||||
"─"
|
||||
"╰"
|
||||
"│"
|
||||
];
|
||||
};
|
||||
diagnostic_update_events = [ "BufWritePost" ];
|
||||
};
|
||||
buffers = {
|
||||
set_filetype = false;
|
||||
write_to_disk = false;
|
||||
};
|
||||
strip_wrapping_quote_characters = [
|
||||
"'"
|
||||
"\""
|
||||
"\`"
|
||||
];
|
||||
handle_leading_whitespace = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
24
tests/test-sources/plugins/by-name/parinfer-rust/default.nix
Normal file
24
tests/test-sources/plugins/by-name/parinfer-rust/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.parinfer-rust.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.parinfer-rust = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
mode = "smart";
|
||||
enabled = true;
|
||||
force_balance = false;
|
||||
comment_char = ";";
|
||||
string_delimiters = [ ''"'' ];
|
||||
lisp_vline_symbols = false;
|
||||
lisp_block_comments = false;
|
||||
guile_block_comments = false;
|
||||
scheme_sexp_comments = false;
|
||||
janet_long_strings = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.plantuml-syntax.enable = true;
|
||||
};
|
||||
}
|
5
tests/test-sources/plugins/by-name/preview/default.nix
Normal file
5
tests/test-sources/plugins/by-name/preview/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.preview.enable = true;
|
||||
};
|
||||
}
|
49
tests/test-sources/plugins/by-name/qmk/default.nix
Normal file
49
tests/test-sources/plugins/by-name/qmk/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
minimal = {
|
||||
plugins.qmk = {
|
||||
enable = true;
|
||||
settings = {
|
||||
name = "LAYOUT_preonic_grid";
|
||||
layout = [
|
||||
"x x"
|
||||
"x^x"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.qmk = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
name = "LAYOUT_preonic_grid";
|
||||
layout = [
|
||||
"x x"
|
||||
"x^x"
|
||||
];
|
||||
variant = "qmk";
|
||||
timeout = 5000;
|
||||
auto_format_pattern = "*keymap.c";
|
||||
comment_preview = {
|
||||
position = "top";
|
||||
keymap_overrides = { };
|
||||
symbols = {
|
||||
space = " ";
|
||||
horz = "─";
|
||||
vert = "│";
|
||||
tl = "┌";
|
||||
tm = "┬";
|
||||
tr = "┐";
|
||||
ml = "├";
|
||||
mm = "┼";
|
||||
mr = "┤";
|
||||
bl = "└";
|
||||
bm = "┴";
|
||||
br = "┘";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
74
tests/test-sources/plugins/by-name/rust-tools/default.nix
Normal file
74
tests/test-sources/plugins/by-name/rust-tools/default.nix
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.rust-tools.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.rust-tools = {
|
||||
enable = true;
|
||||
executor = "termopen";
|
||||
onInitialized = null;
|
||||
reloadWorkspaceFromCargoToml = true;
|
||||
inlayHints = {
|
||||
auto = true;
|
||||
onlyCurrentLine = false;
|
||||
showParameterHints = true;
|
||||
parameterHintsPrefix = "<- ";
|
||||
otherHintsPrefix = "=> ";
|
||||
maxLenAlign = false;
|
||||
maxLenAlignPadding = 1;
|
||||
rightAlign = false;
|
||||
rightAlignPadding = 7;
|
||||
highlight = "Comment";
|
||||
};
|
||||
hoverActions = {
|
||||
border = [
|
||||
[
|
||||
"╭"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"─"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"╮"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"│"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"╯"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"─"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"╰"
|
||||
"FloatBorder"
|
||||
]
|
||||
[
|
||||
"│"
|
||||
"FloatBorder"
|
||||
]
|
||||
];
|
||||
maxWidth = null;
|
||||
maxHeight = null;
|
||||
autoFocus = false;
|
||||
};
|
||||
crateGraph = {
|
||||
backend = "x11";
|
||||
output = null;
|
||||
full = true;
|
||||
enabledGraphvizBackends = null;
|
||||
};
|
||||
server = {
|
||||
standalone = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
187
tests/test-sources/plugins/by-name/rustaceanvim/default.nix
Normal file
187
tests/test-sources/plugins/by-name/rustaceanvim/default.nix
Normal file
|
@ -0,0 +1,187 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.rustaceanvim.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
|
||||
tools = {
|
||||
executor = "termopen";
|
||||
test_executor = "background";
|
||||
crate_test_executor = "background";
|
||||
cargo_override = null;
|
||||
enable_nextest = true;
|
||||
enable_clippy = true;
|
||||
on_initialized = null;
|
||||
reload_workspace_from_cargo_toml = true;
|
||||
hover_actions = {
|
||||
replace_builtin_hover = true;
|
||||
};
|
||||
code_actions = {
|
||||
group_icon = " ▶";
|
||||
ui_select_fallback = false;
|
||||
};
|
||||
float_win_config = {
|
||||
auto_focus = false;
|
||||
open_split = "horizontal";
|
||||
};
|
||||
crate_graph = {
|
||||
backend = "x11";
|
||||
output = null;
|
||||
full = true;
|
||||
enabled_graphviz_backends = [
|
||||
"bmp"
|
||||
"cgimage"
|
||||
"canon"
|
||||
"dot"
|
||||
"gv"
|
||||
"xdot"
|
||||
"xdot1.2"
|
||||
"xdot1.4"
|
||||
"eps"
|
||||
"exr"
|
||||
"fig"
|
||||
"gd"
|
||||
"gd2"
|
||||
"gif"
|
||||
"gtk"
|
||||
"ico"
|
||||
"cmap"
|
||||
"ismap"
|
||||
"imap"
|
||||
"cmapx"
|
||||
"imap_np"
|
||||
"cmapx_np"
|
||||
"jpg"
|
||||
"jpeg"
|
||||
"jpe"
|
||||
"jp2"
|
||||
"json"
|
||||
"json0"
|
||||
"dot_json"
|
||||
"xdot_json"
|
||||
"pdf"
|
||||
"pic"
|
||||
"pct"
|
||||
"pict"
|
||||
"plain"
|
||||
"plain-ext"
|
||||
"png"
|
||||
"pov"
|
||||
"ps"
|
||||
"ps2"
|
||||
"psd"
|
||||
"sgi"
|
||||
"svg"
|
||||
"svgz"
|
||||
"tga"
|
||||
"tiff"
|
||||
"tif"
|
||||
"tk"
|
||||
"vml"
|
||||
"vmlz"
|
||||
"wbmp"
|
||||
"webp"
|
||||
"xlib"
|
||||
"x11"
|
||||
];
|
||||
pipe = null;
|
||||
};
|
||||
open_url = "require('rustaceanvim.os').open_url";
|
||||
};
|
||||
server = {
|
||||
auto_attach = ''
|
||||
function(bufnr)
|
||||
if #vim.bo[bufnr].buftype > 0 then
|
||||
return false
|
||||
end
|
||||
local path = vim.api.nvim_buf_get_name(bufnr)
|
||||
if not os.is_valid_file_path(path) then
|
||||
return false
|
||||
end
|
||||
local cmd = types.evaluate(RustaceanConfig.server.cmd)
|
||||
---@cast cmd string[]
|
||||
local rs_bin = cmd[1]
|
||||
return vim.fn.executable(rs_bin) == 1
|
||||
end
|
||||
'';
|
||||
on_attach = null;
|
||||
cmd = ''
|
||||
function()
|
||||
return { 'rust-analyzer', '--log-file', RustaceanConfig.server.logfile }
|
||||
end
|
||||
'';
|
||||
default_settings = ''
|
||||
function(project_root, default_settings)
|
||||
return require('rustaceanvim.config.server').load_rust_analyzer_settings(project_root, { default_settings = default_settings })
|
||||
end
|
||||
'';
|
||||
standalone = true;
|
||||
logfile.__raw = "vim.fn.tempname() .. '-rust-analyzer.log'";
|
||||
load_vscode_settings = false;
|
||||
};
|
||||
dap = {
|
||||
autoload_configurations = true;
|
||||
adapter = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
with-lspconfig = {
|
||||
plugins = {
|
||||
lsp.enable = true;
|
||||
rustaceanvim.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
rust-analyzer-settings = {
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
|
||||
settings.server.default_settings.rust-analyzer = {
|
||||
linkedProjects = [ "foo/bar/hello" ];
|
||||
numThreads = 42;
|
||||
joinLines.joinElseIf = true;
|
||||
runnables.extraArgs = [ "--release" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dap-executable = {
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
|
||||
settings.dap.adapter = {
|
||||
type = "executable";
|
||||
name = "lldb";
|
||||
command = "lldb-vscode";
|
||||
args = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dap-server = {
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
|
||||
settings.dap.adapter = {
|
||||
type = "server";
|
||||
name = "my-dap-server";
|
||||
host = "127.0.0.1";
|
||||
port = "888";
|
||||
executable = {
|
||||
command = "foo";
|
||||
args = [
|
||||
"-l"
|
||||
"--foo"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
62
tests/test-sources/plugins/by-name/sniprun/default.nix
Normal file
62
tests/test-sources/plugins/by-name/sniprun/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.sniprun.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.sniprun = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
selected_interpreters = [ ];
|
||||
repl_enable = [ ];
|
||||
repl_disable = [ ];
|
||||
interpreter_options = { };
|
||||
display = [
|
||||
"Classic"
|
||||
"VirtualTextOk"
|
||||
];
|
||||
live_display = [ "VirtualTextOk" ];
|
||||
display_options = {
|
||||
terminal_scrollback.__raw = "vim.o.scrollback";
|
||||
terminal_line_number = false;
|
||||
terminal_signcolumn = false;
|
||||
terminal_position = "vertical";
|
||||
terminal_width = 45;
|
||||
terminal_height = 20;
|
||||
notification_timeout = 5;
|
||||
};
|
||||
show_no_output = [
|
||||
"Classic"
|
||||
"TempFloatingWindow"
|
||||
];
|
||||
snipruncolors = {
|
||||
SniprunVirtualTextOk = {
|
||||
bg = "#66eeff";
|
||||
fg = "#000000";
|
||||
ctermbg = "Cyan";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
SniprunFloatingWinOk = {
|
||||
fg = "#66eeff";
|
||||
ctermfg = "Cyan";
|
||||
};
|
||||
SniprunVirtualTextErr = {
|
||||
bg = "#881515";
|
||||
fg = "#000000";
|
||||
ctermbg = "DarkRed";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
SniprunFloatingWinErr = {
|
||||
fg = "#881515";
|
||||
ctermfg = "DarkRed";
|
||||
bold = true;
|
||||
};
|
||||
};
|
||||
live_mode_toggle = "off";
|
||||
inline_messages = false;
|
||||
borders = "single";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
54
tests/test-sources/plugins/by-name/tagbar/default.nix
Normal file
54
tests/test-sources/plugins/by-name/tagbar/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
empty = { };
|
||||
|
||||
example = {
|
||||
plugins.tagbar = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
position = "right";
|
||||
autoclose = false;
|
||||
autofocus = false;
|
||||
foldlevel = 2;
|
||||
autoshowtag = true;
|
||||
iconchars = [
|
||||
""
|
||||
""
|
||||
];
|
||||
wrap = true;
|
||||
show_data_type = true;
|
||||
show_visibility = true;
|
||||
visibility_symbols = {
|
||||
public = " ";
|
||||
protected = " ";
|
||||
private = " ";
|
||||
};
|
||||
show_linenumbers = true;
|
||||
case_insensitive = true;
|
||||
show_tag_count = true;
|
||||
compact = true;
|
||||
indent = true;
|
||||
autopreview = false;
|
||||
previewwin_pos = "belowleft";
|
||||
scopestrs = {
|
||||
class = "\\uf0e8";
|
||||
struct = "\\uf0e8";
|
||||
const = "\\uf8ff";
|
||||
constant = "\\uf8ff";
|
||||
enum = "\\uf702";
|
||||
field = "\\uf30b";
|
||||
func = "\\uf794";
|
||||
function = "\\uf794";
|
||||
getter = "\\ufab6";
|
||||
implementation = "\\uf776";
|
||||
interface = "\\uf7fe";
|
||||
map = "\\ufb44";
|
||||
member = "\\uf02b";
|
||||
method = "\\uf6a6";
|
||||
setter = "\\uf7a9";
|
||||
variable = "\\uf71b";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
7
tests/test-sources/plugins/by-name/texpresso/default.nix
Normal file
7
tests/test-sources/plugins/by-name/texpresso/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
empty = {
|
||||
# texpresso is broken on darwin
|
||||
plugins.texpresso.enable = !pkgs.stdenv.isDarwin;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.typescript-tools.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.typescript-tools = {
|
||||
enable = true;
|
||||
settings = {
|
||||
separateDiagnosticServer = true;
|
||||
publishDiagnosticOn = "insert_leave";
|
||||
exposeAsCodeAction = null;
|
||||
tsserverPath = null;
|
||||
tsserverPlugins = null;
|
||||
tsserverMaxMemory = "auto";
|
||||
tsserverFormatOptions = null;
|
||||
tsserverFilePreferences = null;
|
||||
tsserverLocale = "en";
|
||||
completeFunctionCalls = false;
|
||||
includeCompletionsWithInsertText = true;
|
||||
codeLens = "off";
|
||||
disableMemberCodeLens = true;
|
||||
jsxCloseTag = {
|
||||
enable = false;
|
||||
filetypes = [
|
||||
"javascriptreact"
|
||||
"typescriptreact"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
23
tests/test-sources/plugins/by-name/typst-vim/default.nix
Normal file
23
tests/test-sources/plugins/by-name/typst-vim/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.typst-vim.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.typst-vim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
cmd = "typst";
|
||||
pdf_viewer = "zathura";
|
||||
conceal_math = 0;
|
||||
auto_close_toc = 0;
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
watch = "<leader>w";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
25
tests/test-sources/plugins/by-name/vim-slime/default.nix
Normal file
25
tests/test-sources/plugins/by-name/vim-slime/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.vim-slime.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.vim-slime = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
target = "screen";
|
||||
vimterminal_cmd = null;
|
||||
no_mappings = 0;
|
||||
paste_file = "$HOME/.slime_paste";
|
||||
preserve_curpos = 1;
|
||||
default_config = {
|
||||
socket_name = "default";
|
||||
target_pane = "{last}";
|
||||
};
|
||||
dont_ask_default = 0;
|
||||
bracketed_paste = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
72
tests/test-sources/plugins/by-name/vimtex/default.nix
Normal file
72
tests/test-sources/plugins/by-name/vimtex/default.nix
Normal file
|
@ -0,0 +1,72 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
# CI failure: When trying to build `pkgs.texlive.combined.scheme-medium` on darwin, it fails with
|
||||
# > sandbox-exec: pattern serialization length 75279 exceeds maximum (65535)
|
||||
disableTexlivePackageOnDarwin = pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
|
||||
texlivePackage = null;
|
||||
};
|
||||
in
|
||||
{
|
||||
empty = {
|
||||
plugins.vimtex = disableTexlivePackageOnDarwin // {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.vimtex = disableTexlivePackageOnDarwin // {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
compiler_enabled = false;
|
||||
compiler_method = "arara";
|
||||
quickfix_enabled = false;
|
||||
view_enabled = false;
|
||||
complete_enabled = false;
|
||||
fold_enabled = true;
|
||||
fold_manual = true;
|
||||
fold_types = {
|
||||
preamble.enabled = true;
|
||||
sections.enabled = true;
|
||||
parts.enabled = true;
|
||||
comments.enabled = false;
|
||||
envs.whitelist = [
|
||||
"frame"
|
||||
"abstract"
|
||||
];
|
||||
env_options.enabled = false;
|
||||
items.enabled = false;
|
||||
markers.enabled = false;
|
||||
cmd_single.enabled = false;
|
||||
cmd_single_opt.enabled = false;
|
||||
cmd_multi.enabled = false;
|
||||
cmd_addplot.enabled = false;
|
||||
};
|
||||
indent_enabled = false;
|
||||
matchparen_enabled = false;
|
||||
toc_config = {
|
||||
split_pos = "vert topleft";
|
||||
split_width = 40;
|
||||
mode = 1;
|
||||
fold_enable = true;
|
||||
fold_level_start = -1;
|
||||
show_help = false;
|
||||
resize = false;
|
||||
show_numbers = true;
|
||||
layer_status = {
|
||||
label = 0;
|
||||
include = 0;
|
||||
todo = 0;
|
||||
content = 1;
|
||||
};
|
||||
hide_line_numbers = false;
|
||||
tocdepth = 2;
|
||||
indent_levels = 1;
|
||||
};
|
||||
toc_show_preamble = false;
|
||||
|
||||
doc_confirm_single = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
15
tests/test-sources/plugins/by-name/zig/default.nix
Normal file
15
tests/test-sources/plugins/by-name/zig/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.zig.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.zig = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
fmt_autosave = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue