plugins/utils: move to by-name

This commit is contained in:
Matt Sturgeon 2024-09-04 17:14:16 +01:00
parent faff32b9f1
commit 52f125679f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
195 changed files with 2 additions and 102 deletions

View file

@ -1,110 +0,0 @@
{
theme = {
plugins.alpha = {
enable = true;
theme = "dashboard";
};
};
theme-lua = {
plugins.alpha = {
enable = true;
theme.__raw = "require'alpha.themes.startify'.config";
};
};
terminal = {
plugins.alpha = {
enable = true;
layout = [
{
type = "terminal";
command = "thisisfine";
width = 46;
height = 25;
opts = {
redraw = true;
};
}
];
};
};
custom-layout = {
plugins.alpha = {
enable = true;
layout = [
{
type = "padding";
val = 2;
}
{
type = "text";
val = [
" "
" "
" "
" "
" "
" "
];
opts = {
position = "center";
hl = "Type";
};
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
type = "button";
val = " New file";
on_press.__raw = "function() vim.cmd[[ene]] end";
opts.shortcut = "n";
}
{
type = "button";
val = " Quit Neovim";
on_press.__raw = "function() vim.cmd[[qa]] end";
opts.shortcut = "q";
}
];
}
{
type = "padding";
val = 2;
}
{
type = "text";
val = "Inspiring quote here.";
opts = {
position = "center";
hl = "Keyword";
};
}
];
opts = {
margin = 0;
noautocmd = true;
keymap = {
press = "<CR>";
press_queue = "<M-CR>";
};
};
};
};
no-packages = {
plugins.alpha = {
enable = true;
theme = "dashboard";
iconsPackage = null;
};
};
}

View file

@ -1,82 +0,0 @@
{
empty = {
plugins.arrow.enable = true;
};
defaults = {
plugins.arrow = {
enable = true;
settings = {
show_icons = true;
always_show_path = false;
separate_by_branch = false;
hide_handbook = false;
save_path = ''
function()
return vim.fn.stdpath("cache") .. "/arrow"
end
'';
mappings = {
edit = "e";
delete_mode = "d";
clear_all_items = "C";
toggle = "s";
open_vertical = "v";
open_horizontal = "-";
quit = "q";
remove = "x";
next_item = "]";
prev_item = "[";
};
custom_actions = {
open = ''function(target_file_name, current_file_name) end'';
split_vertical = ''function(target_file_name, current_file_name) end'';
split_horizontal = ''function(target_file_name, current_file_name) end'';
};
window = {
width = "auto";
height = "auto";
row = "auto";
col = "auto";
border = "double";
};
per_buffer_config = {
lines = 4;
sort_automatically = true;
satellite = {
enable = false;
overlap = true;
priority = 1000;
};
zindex = 10;
};
separate_save_and_remove = false;
leader_key = ";";
save_key = "cwd";
global_bookmarks = false;
index_keys = "123456789zxcbnmZXVBNM,afghjklAFGHJKLwrtyuiopWRTYUIOP";
full_path_list = [ "update_stuff" ];
};
};
};
example = {
plugins.arrow = {
enable = true;
settings = {
show_icons = true;
leader_key = ";";
window = {
width = 50;
height = "auto";
row = "auto";
col = "auto";
border = "double";
};
index_keys = "azertyuiopAZERTYUIOP123456789";
};
};
};
}

View file

@ -1,64 +0,0 @@
{
empty = {
plugins.auto-save.enable = true;
};
example = {
plugins.auto-save = {
enable = true;
settings = {
condition = ''
function(buf)
local fn = vim.fn
local utils = require("auto-save.utils.data")
if utils.not_in(fn.getbufvar(buf, "&filetype"), {'oil'}) then
return true
end
return false
end
'';
write_all_buffers = true;
debounce_delay = 1000;
};
};
};
defaults = {
plugins.auto-save = {
enable = true;
settings = {
enabled = true;
execution_message = {
enabled = true;
dim = 0.18;
cleaning_interval = 1250;
message.__raw = ''
function()
return ("AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"))
end
'';
};
trigger_events = {
immediate_save = [
"BufLeave"
"FocusLost"
];
defer_save = [
"InsertLeave"
"TextChanged"
];
cancel_defered_save = [ "InsertEnter" ];
};
condition = null;
write_all_buffers = false;
noautocmd = false;
lockmarks = false;
debounce_delay = 1000;
debug = false;
};
};
};
}

View file

@ -1,48 +0,0 @@
{
empty = {
plugins.auto-session.enable = true;
};
example = {
plugins.auto-session = {
enable = true;
logLevel = "error";
autoSession = {
enabled = true;
enableLastSession = false;
rootDir = {
__raw = "vim.fn.stdpath 'data' .. '/sessions/'";
};
createEnabled = true;
suppressDirs = null;
allowedDirs = [ ];
useGitBranch = true;
};
autoSave = {
enabled = true;
};
autoRestore = {
enabled = true;
};
cwdChangeHandling = {
restoreUpcomingSession = true;
preCwdChangedHook = null;
postCwdChangedHook = null;
};
bypassSessionSaveFileTypes = [ ];
sessionLens = {
loadOnSetup = true;
themeConf = {
winblend = 10;
border = true;
};
previewer = false;
sessionControl = {
controlDir = "vim.fn.stdpath 'data' .. '/auto_session/'";
controlFilename = "session_control.json";
};
};
};
};
}

View file

@ -1,73 +0,0 @@
{
empty = {
plugins.autoclose.enable = true;
};
defaults = {
plugins.autoclose.enable = true;
plugins.autoclose = {
keys = {
"(" = {
escape = false;
close = true;
pair = "()";
};
"[" = {
escape = false;
close = true;
pair = "[]";
};
"{" = {
escape = false;
close = true;
pair = "{}";
};
">" = {
escape = true;
close = false;
pair = "<>";
};
")" = {
escape = true;
close = false;
pair = "()";
};
"]" = {
escape = true;
close = false;
pair = "[]";
};
"}" = {
escape = true;
close = false;
pair = "{}";
};
"\"" = {
escape = true;
close = true;
pair = ''""'';
};
"'" = {
escape = true;
close = true;
pair = "''";
};
"`" = {
escape = true;
close = true;
pair = "``";
};
};
options = {
disabledFiletypes = [ "text" ];
disableWhenTouch = false;
touchRegex = "[%w(%[{]";
pairSpaces = false;
autoIndent = true;
disableCommandMode = false;
};
};
};
}

View file

@ -1,16 +0,0 @@
{
empty = {
plugins.autosource.enable = true;
};
defaults = {
plugins.autosource = {
enable = true;
settings = {
prompt_for_new_file = 1;
prompt_for_changed_file = 1;
};
};
};
}

View file

@ -1,17 +0,0 @@
{
empty = {
plugins.bacon.enable = true;
};
defaults = {
plugins.bacon = {
enable = true;
settings = {
quickfix = {
enabled = true;
event_trigger = true;
};
};
};
};
}

View file

@ -1,20 +0,0 @@
{
empty = {
plugins.baleia.enable = true;
};
example = {
plugins.baleia = {
enable = true;
settings = {
async = true;
colors = "NR_8";
line_starts_at = 1;
log = "INFO";
name = "BaleiaColors";
strip_ansi_codes = false;
};
};
};
}

View file

@ -1,47 +0,0 @@
{
empty = {
plugins.better-escape.enable = true;
};
defaults = {
plugins.better-escape = {
enable = true;
settings = {
timeout = "vim.o.timeoutlen";
default_mappings = true;
mappings = {
i.j = {
k = "<Esc>";
j = "<Esc>";
};
c.j = {
k = "<Esc>";
j = "<Esc>";
};
t.j = {
k = "<Esc>";
j = "<Esc>";
};
v.j.k = "<Esc>";
s.j.k = "<Esc>";
};
};
};
};
example = {
plugins.better-escape = {
enable = true;
settings = {
mappings.i.j = {
k = "<Esc>";
j = "<Esc>";
};
timeout = 150;
};
};
};
}

View file

@ -1,12 +0,0 @@
{
empty = {
plugins.bufdelete.enable = true;
};
defaults = {
plugins.bufdelete = {
enable = true;
settings.buf_filter = null;
};
};
}

View file

@ -1,98 +0,0 @@
{
empty = {
plugins.ccc.enable = true;
};
defaults = {
plugins.ccc = {
enable = true;
settings = {
default_color = "#000000";
inputs = [
"ccc.input.rgb"
"ccc.input.hsl"
"ccc.input.cmyk"
];
outputs = [
"ccc.output.hex"
"ccc.output.hex_short"
"ccc.output.css_rgb"
"ccc.output.css_hsl"
];
pickers = [
"ccc.picker.hex"
"ccc.picker.css_rgb"
"ccc.picker.css_hsl"
"ccc.picker.css_hwb"
"ccc.picker.css_lab"
"ccc.picker.css_lch"
"ccc.picker.css_oklab"
"ccc.picker.css_oklch"
];
highlight_mode = "bg";
lsp = true;
highlighter = {
auto_enable = false;
filetypes = [ ];
excludes = [ ];
lsp = true;
update_insert = true;
};
convert = [
[
"ccc.picker.hex"
"ccc.output.css_rgb"
]
[
"ccc.picker.css_rgb"
"ccc.output.css_hsl"
]
[
"ccc.picker.css_hsl"
"ccc.output.hex"
]
];
};
};
};
example = {
plugins.ccc = {
enable = true;
settings = {
default_color = "#FFFFFF";
inputs = [
"ccc.input.oklab"
"ccc.input.oklch"
];
outputs = [
"ccc.output.css_oklab"
"ccc.output.css_oklch"
];
pickers = [
"ccc.picker.css_oklch"
"ccc.picker.css_name"
"ccc.picker.hex"
];
highlight_mode = "fg";
lsp = false;
highlighter = {
auto_enable = true;
lsp = false;
excludes = [ "markdown" ];
update_insert = false;
};
convert = [
[
"ccc.picker.hex"
"ccc.output.css_oklch"
]
[
"ccc.picker.css_oklch"
"ccc.output.hex"
]
];
};
};
};
}

View file

@ -1,40 +0,0 @@
{ pkgs, ... }:
{
empty = {
plugins.clipboard-image = {
enable = true;
clipboardPackage = null;
};
};
example = {
plugins.clipboard-image = {
enable = true;
clipboardPackage = pkgs.wl-clipboard;
default = {
imgDir = "img";
imgDirTxt = "img";
imgName.__raw = "function() return os.date('%Y-%m-%d-%H-%M-%S') end";
imgHandler = "function(img) end";
affix = "{img_path}";
};
filetypes = {
markdown = {
imgDir = [
"src"
"assets"
"img"
];
imgDirTxt = "/assets/img";
imgHandler = ''
function(img) -- New feature from PR #22
local script = string.format('./image_compressor.sh "%s"', img.path)
os.execute(script)
end
'';
};
};
};
};
}

View file

@ -1,49 +0,0 @@
{
empty = {
plugins.cloak.enable = true;
};
defaults = {
plugins.cloak = {
enable = true;
settings = {
enabled = true;
cloak_character = "*";
highlight_group = "Comment";
cloak_length = null;
try_all_patterns = true;
cloak_telescope = true;
patterns = [
{
file_pattern = ".env*";
cloak_pattern = "=.+";
replace = null;
}
];
};
};
};
example = {
plugins.cloak = {
enable = true;
settings = {
enabled = true;
cloak_character = "*";
highlight_group = "Comment";
patterns = [
{
file_pattern = [
".env*"
"wrangler.toml"
".dev.vars"
];
cloak_pattern = "=.+";
}
];
};
};
};
}

View file

@ -1,43 +0,0 @@
{
empty = {
plugins.codesnap.enable = true;
};
defaults = {
plugins.codesnap = {
enable = true;
settings = {
save_path = null;
mac_window_bar = true;
title = "CodeSnap.nvim";
code_font_family = "CaskaydiaCove Nerd Font";
watermark_font_family = "Pacifico";
watermark = "CodeSnap.nvim";
bg_theme = "default";
bg_color = null;
breadcrumbs_separator = "/";
has_breadcrumbs = false;
has_line_number = false;
show_workspace = false;
min_width = 0;
};
};
};
example = {
plugins.codesnap = {
enable = true;
settings = {
save_path = "~/Pictures/Screenshots/";
mac_window_bar = true;
title = "CodeSnap.nvim";
watermark = "";
breadcrumbs_separator = "/";
has_breadcrumbs = true;
has_line_number = false;
};
};
};
}

View file

@ -1,40 +0,0 @@
_: {
empty = {
plugins.comment-box.enable = true;
};
defaults = {
plugins.comment-box = {
enable = true;
settings = {
comment_style = "line";
doc_width = 80;
box_width = 60;
borders = {
top = "";
bottom = "";
left = "";
right = "";
top_left = "";
top_right = "";
bottom_left = "";
bottom_right = "";
};
line_width = 70;
lines = {
line = "";
line_start = "";
line_end = "";
title_left = "";
title_right = "";
};
outer_blank_lines_above = false;
outer_blank_lines_below = false;
inner_blank_lines = false;
line_blank_line_above = false;
line_blank_line_below = false;
};
};
};
}

View file

@ -1,61 +0,0 @@
{
empty = {
plugins.comment.enable = true;
};
defaults = {
plugins.comment = {
enable = true;
settings = {
padding = true;
sticky = true;
ignore = null;
toggler = {
line = "gcc";
block = "gbc";
};
opleader = {
line = "gc";
block = "gb";
};
extra = {
above = "gcO";
below = "gco";
eol = "gcA";
};
mappings = {
basic = true;
extra = true;
};
pre_hook = null;
post_hook = null;
};
};
};
example = {
plugins = {
treesitter.enable = true;
ts-context-commentstring.enable = true;
comment = {
enable = true;
settings = {
ignore = "^const(.*)=(%s?)%((.*)%)(%s?)=>";
pre_hook = "require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()";
post_hook = ''
function(ctx)
if ctx.range.srow == ctx.range.erow then
-- do something with the current line
else
-- do something with lines range
end
end
'';
};
};
};
};
}

View file

@ -1,93 +0,0 @@
{
empty = {
plugins.competitest.enable = true;
};
defaults = {
plugins.competitest = {
enable = true;
settings = {
local_config_file_name = ".competitest.lua";
save_current_file = true;
save_all_files = false;
compile_directory = ".";
compile_command = {
c = {
exec = "gcc";
args = [
"-Wall"
"$(FNAME)"
"-o"
"$(FNOEXT)"
];
};
cpp = {
exec = "g++";
args = [
"-Wall"
"$(FNAME)"
"-o"
"$(FNOEXT)"
];
};
rust = {
exec = "rustc";
args = [ "$(FNAME)" ];
};
java = {
exec = "javac";
args = [ "$(FNAME)" ];
};
};
running_directory = ".";
run_command = {
c = {
exec = "./$(FNOEXT)";
};
cpp = {
exec = "./$(FNOEXT)";
};
rust = {
exec = "./$(FNOEXT)";
};
python = {
exec = "python";
args = [ "$(FNAME)" ];
};
java = {
exec = "java";
args = [ "$(FNOEXT)" ];
};
};
multiple_testing = -1;
maximum_time = 5000;
output_compare_method = "squish";
view_output_diff = false;
testcases_directory = ".";
testcases_use_single_file = false;
testcases_auto_detect_storage = true;
testcases_single_file_format = "$(FNOEXT).testcases";
testcases_input_file_format = "$(FNOEXT)_input$(TCNUM).txt";
testcases_output_file_format = "$(FNOEXT)_output$(TCNUM).txt";
companion_port = 27121;
receive_print_message = true;
template_file = false;
evaluate_template_modifiers = false;
date_format = "%c";
received_files_extension = "cpp";
received_problems_path = "$(CWD)/$(PROBLEM).$(FEXT)";
received_problems_prompt_path = true;
received_contests_directory = "$(CWD)";
received_contests_problems_path = "$(PROBLEM).$(FEXT)";
received_contests_prompt_directory = true;
received_contests_prompt_extension = true;
open_received_problems = true;
open_received_contests = true;
replace_received_testcases = false;
};
};
};
}

View file

@ -1,5 +0,0 @@
{
empty = {
plugins.conjure.enable = true;
};
}

View file

@ -1,103 +0,0 @@
{
empty = {
plugins.coverage.enable = true;
};
example = {
plugins.coverage = {
enable = true;
keymapsSilent = true;
keymaps = {
coverage = "<leader>a";
load = "<leader>b";
show = "<leader>c";
hide = "<leader>d";
toggle = "<leader>e";
clear = "<leader>f";
summary = "<leader>g";
loadLcov = "<leader>h";
};
autoReload = false;
autoReloadTimeoutMs = 500;
commands = true;
highlights = {
covered = {
fg = "#B7F071";
};
uncovered = {
fg = "#F07178";
};
partial = {
fg = "#AA71F0";
};
summaryBorder = {
link = "FloatBorder";
};
summaryNormal = {
link = "NormalFloat";
};
summaryCursorLine = {
link = "CursorLine";
};
summaryHeader = {
style = "bold,underline";
sp = "bg";
};
summaryPass = {
link = "CoverageCovered";
};
summaryFail = {
link = "CoverageUncovered";
};
};
loadCoverageCb = ''
function (ftype)
vim.notify("Loaded " .. ftype .. " coverage")
end
'';
signs = {
covered = {
hl = "CoverageCovered";
text = "";
};
uncovered = {
hl = "CoverageUncovered";
text = "";
};
partial = {
hl = "CoveragePartial";
text = "";
};
};
signGroup = "coverage";
summary = {
widthPercentage = 0.7;
heightPercentage = 0.5;
borders = {
topleft = "";
topright = "";
top = "";
left = "";
right = "";
botleft = "";
botright = "";
bot = "";
highlight = "Normal:CoverageSummaryBorder";
};
minCoverage = 80;
};
lang = {
python = {
coverage_file = ".coverage";
coverage_command = "coverage json --fail-under=0 -q -o -";
};
ruby = {
coverage_file = "coverage/coverage.json";
};
};
lcovFile = null;
};
};
}

View file

@ -1,24 +0,0 @@
{
empty = {
plugins.cursorline.enable = true;
};
defaults = {
plugins.cursorline = {
enable = true;
cursorline = {
enable = true;
timeout = 1000;
number = false;
};
cursorword = {
enable = true;
minLength = 3;
hl = {
underline = true;
};
};
};
};
}

View file

@ -1,206 +0,0 @@
{
empty = {
plugins.dashboard = {
enable = true;
};
};
defaults = {
plugins.dashboard = {
enable = true;
settings = {
theme = "hyper";
disable_move = false;
shortcut_type = "letter";
buffer_name = "Dashboard";
change_to_vcs_root = false;
config = {
disable_move = false;
week_header = {
enable = false;
concat = "";
append = [ ];
};
header = [
""
" "
" "
" "
" "
" "
" "
""
];
};
hide = {
statusline = true;
tabline = true;
};
preview = {
command = "";
file_path = null;
file_height = 0;
file_width = 0;
};
};
};
};
hyper_options = {
plugins.dashboard = {
enable = true;
settings = {
theme = "hyper";
config = {
packages.enable = true;
shortcut = [
{
desc = "string";
group = "highlight group";
key = "shortcut key";
action = "action when you press key";
}
];
project = {
enable = true;
limit = 8;
icon = "your icon";
label = "";
action = "Telescope find_files cwd=";
};
mru = {
limit = 10;
icon = "your icon";
label = "";
cwd_only = false;
};
footer = [ ];
};
};
};
};
doom_options = {
plugins.dashboard = {
enable = true;
settings = {
theme = "hyper";
config = {
center = [
{
icon = "";
icon_hl = "group";
desc = "description";
desc_hl = "group";
key = "shortcut key in dashboard buffer not keymap !!";
key_hl = "group";
key_format = " [%s]";
action = "";
}
];
footer = [ ];
};
};
};
};
hyper_example = {
plugins.dashboard = {
enable = true;
settings = {
theme = "hyper";
change_to_vcs_root = true;
config = {
week_header.enable = true;
project.enable = false;
mru.limit = 20;
header = [
" "
" "
" "
" "
" "
" "
];
shortcut = [
{
icon = " ";
icon_hl = "@variable";
desc = "Files";
group = "Label";
action.__raw = "function(path) vim.cmd('Telescope find_files') end";
key = "f";
}
{
desc = " Apps";
group = "DiagnosticHint";
action = "Telescope app";
key = "a";
}
{
desc = " dotfiles";
group = "Number";
action = "Telescope dotfiles";
key = "d";
}
];
footer = [ "Made with " ];
};
};
};
};
doom_example = {
plugins.dashboard = {
enable = true;
settings = {
theme = "doom";
config = {
header = [ "Your header" ];
center = [
{
icon = " ";
icon_hl = "Title";
desc = "Find File ";
desc_hl = "String";
key = "b";
keymap = "SPC f f";
key_hl = "Number";
key_format = " %s";
action = "lua print(2)";
}
{
icon = " ";
desc = "Find Dotfiles";
key = "f";
keymap = "SPC f d";
key_format = " %s";
action.__raw = "function() print(3) end";
}
];
footer = [ "Your footer" ];
};
};
};
};
}

View file

@ -1,17 +0,0 @@
{
empty = {
plugins.direnv.enable = true;
};
defaults = {
plugins.direnv = {
enable = true;
settings = {
direnv_auto = 0;
direnv_edit_mode = "vsplit";
direnv_silent_load = 0;
};
};
};
}

View file

@ -1,127 +0,0 @@
{
empty = {
plugins.dressing.enable = true;
};
defaults = {
plugins.dressing = {
enable = true;
settings = {
input = {
enabled = true;
default_prompt = "Input";
trim_prompt = true;
title_pos = "left";
insert_only = true;
start_in_insert = true;
border = "rounded";
relative = "cursor";
prefer_width = 40;
width = null;
max_width = [
140
0.9
];
min_width = [
20
0.2
];
win_options = {
wrap = false;
list = true;
listchars = "precedes:...,extends:...";
sidescrolloff = 0;
};
mappings = {
n = {
"<Esc>" = "Close";
"<CR>" = "Confirm";
};
i = {
"<C-c>" = "Close";
"<CR>" = "Confirm";
"<Up>" = "HistoryPrev";
"<Down>" = "HistoryNext";
};
};
override = "function(conf) return conf end";
get_config = null;
};
select = {
enabled = true;
backend = [
"telescope"
"fzf_lua"
"fzf"
"builtin"
"nui"
];
trim_prompt = true;
telescope = null;
fzf.window = {
width = 0.5;
height = 0.4;
};
fzf_lua = { };
nui = {
position = "50%";
size = null;
relative = "editor";
border = {
style = "rounded";
};
buf_options = {
swapfile = false;
filetype = "DressingSelect";
};
win_options = {
winblend = 0;
};
max_width = 80;
max_height = 40;
min_width = 40;
min_height = 10;
};
builtin = {
show_numbers = true;
border = "rounded";
relative = "editor";
buf_options = { };
win_options = {
cursorline = true;
cursorlineopt = "both";
};
width = null;
max_width = [
140
0.8
];
min_width = [
40
0.2
];
height = null;
max_height = 0.9;
min_height = [
10
0.2
];
mappings = {
"<Esc>" = "Close";
"<C-c>" = "Close";
"<CR>" = "Confirm";
};
override = "function(conf) return conf end";
};
format_item_override = { };
get_config = null;
};
};
};
};
}

View file

@ -1,47 +0,0 @@
{
empty = {
plugins.emmet.enable = true;
};
example = {
plugins.emmet = {
enable = true;
settings = {
mode = "inv";
leader = "<C-Z>";
settings = {
variables = {
lang = "ja";
};
html = {
default_attributes = {
option = {
value = null;
};
textarea = {
id = null;
name = null;
cols = 10;
rows = 10;
};
};
snippets = {
"html:5" = ''
<!DOCTYPE html>
<html lang=\"$\{lang}\">
<head>
\t<meta charset=\"$\{charset}\">
\t<title></title>
\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
</head>
<body>\n\t$\{child}|\n</body>
</html>
'';
};
};
};
};
};
};
}

View file

@ -1,5 +0,0 @@
{
empty = {
plugins.endwise.enable = true;
};
}

View file

@ -1,56 +0,0 @@
{
empty = {
plugins.firenvim.enable = true;
};
example = {
plugins.firenvim = {
enable = true;
settings = {
globalSettings.alt = "all";
localSettings = {
".*" = {
cmdline = "neovim";
content = "text";
priority = 0;
selector = "textarea";
takeover = "always";
};
"https?://[^/]+\\.co\\.uk/" = {
takeover = "never";
priority = 1;
};
};
};
};
};
check-alias =
{ config, ... }:
{
assertions = [
{
assertion = config.globals ? firenvim_config;
message = "`firenvim_config` should be present in globals";
}
{
assertion = config.globals.firenvim_config.globalSettings.alt or null == "all";
message = "`globalSettings` should be have set `alt = \"all\"`";
}
{
assertion = config.globals.firenvim_config.localSettings.".*".cmdline or null == "neovim";
message = "`localSettings` should be have set `\".*\".cmdline = \"neovim\"`";
}
];
plugins.firenvim = {
enable = true;
settings = {
globalSettings.alt = "all";
localSettings.".*".cmdline = "neovim";
};
};
};
}

View file

@ -1,205 +0,0 @@
{ helpers, ... }:
{
empty = {
plugins.flash.enable = true;
};
defaults = {
plugins.flash = {
enable = true;
settings = {
labels = "asdfghjklqwertyuiopzxcvbnm";
search = {
multi_window = true;
forward = true;
wrap = true;
mode = "exact";
incremental = false;
exclude = [
"notify"
"cmp_menu"
"noice"
"flash_prompt"
(helpers.mkRaw ''
function(win)
-- exclude non-focusable windows
return not vim.api.nvim_win_get_config(win).focusable
end
'')
];
trigger = "";
max_length = false;
};
jump = {
jumplist = true;
pos = "start";
history = false;
register = false;
nohlsearch = false;
autojump = false;
inclusive = null;
offset = null;
};
label = {
uppercase = true;
exclude = "";
current = true;
after = true;
before = false;
style = "overlay";
reuse = "lowercase";
distance = true;
min_pattern_length = 0;
rainbow = {
enabled = false;
shade = 5;
};
format = ''
function(opts)
return { { opts.match.label, opts.hl_group } }
end
'';
};
highlight = {
backdrop = true;
matches = true;
priority = 5000;
groups = {
match = "FlashMatch";
current = "FlashCurrent";
backdrop = "FlashBackdrop";
label = "FlashLabel";
};
};
action = null;
pattern = "";
continue = false;
config = null;
prompt = {
enabled = true;
prefix = [
[
""
"FlashPromptIcon"
]
];
win_config = {
relative = "editor";
width = 1;
height = 1;
row = -1;
col = 0;
zindex = 1000;
};
};
remote_op = {
restore = false;
motion = false;
};
modes = {
search = {
enabled = false;
highlight = {
backdrop = false;
};
jump = {
history = true;
register = true;
nohlsearch = true;
};
search = {
forward.__raw = "vim.fn.getcmdtype() == '/'";
mode = "search";
incremental.__raw = "vim.go.incsearch";
};
};
char = {
enabled = true;
config = ''
function(opts)
-- autohide flash when in operator-pending mode
opts.autohide = opts.autohide or (vim.fn.mode(true):find("no") and vim.v.operator == "y")
-- disable jump labels when not enabled, when using a count,
-- or when recording/executing registers
opts.jump_labels = opts.jump_labels
and vim.v.count == 0
and vim.fn.reg_executing() == ""
and vim.fn.reg_recording() == ""
-- Show jump labels only in operator-pending mode
-- opts.jump_labels = vim.v.count == 0 and vim.fn.mode(true):find("o")
end
'';
autohide = false;
jump_labels = false;
multi_line = true;
label = {
exclude = "hjkliardc";
};
keys = {
__unkeyed-0 = "f";
__unkeyed-1 = "F";
__unkeyed-2 = "t";
__unkeyed-3 = "T";
__unkeyed-4 = ";";
__unkeyed-5 = ",";
};
char_actions = ''
function(motion)
return {
[";"] = "next", -- set to `right` to always go right
[","] = "prev", -- set to `left` to always go left
-- clever-f style
[motion:lower()] = "next",
[motion:upper()] = "prev",
-- jump2d style: same case goes next, opposite case goes prev
-- [motion] = "next",
-- [motion:match("%l") and motion:upper() or motion:lower()] = "prev",
}
end
'';
search.wrap = false;
highlight.backdrop = true;
jump.register = false;
};
treesitter = {
labels = "abcdefghijklmnopqrstuvwxyz";
jump.pos = "range";
search.incremental = false;
label = {
before = true;
after = true;
style = "inline";
};
highlight = {
backdrop = false;
matches = false;
};
};
treesitter_search = {
jump.pos = "range";
search = {
multi_window = true;
wrap = true;
incremental = false;
};
remote_op.restore = true;
label = {
before = true;
after = true;
style = "inline";
};
};
remote = {
remote_op = {
restore = true;
motion = true;
};
};
};
};
};
};
}

View file

@ -1,64 +0,0 @@
{
empty = {
plugins.fzf-lua.enable = true;
};
example = {
plugins.fzf-lua = {
enable = true;
profile = "telescope";
keymaps = {
"<Leader>ff" = {
action = "files";
settings = {
cwd = "~/Github";
winopts = {
height = 0.1;
width = 0.5;
};
};
options.silent = true;
};
"<Leader>fg" = "live_grep";
"<C-x><C-f>" = {
mode = "i";
action = "complete_file";
settings = {
cmd = "rg --files";
winopts.preview.hidden = "nohidden";
};
options = {
silent = true;
desc = "Fuzzy complete file";
};
};
};
settings = {
grep = {
prompt = "Grep ";
};
winopts = {
height = 0.4;
width = 0.93;
row = 0.99;
col = 0.3;
};
files = {
find_opts.__raw = "[[-type f -not -path '*.git/objects*' -not -path '*.env*']]";
prompt = "Files ";
multiprocess = true;
file_icons = true;
color_icons = true;
};
};
};
};
no-packages = {
plugins.fzf-lua = {
enable = true;
iconsPackage = null;
};
};
}

View file

@ -1,17 +0,0 @@
{
empty = {
plugins.goyo.enable = true;
};
defaults = {
plugins.goyo = {
enable = true;
settings = {
width = 80;
height = 85;
linenr = 0;
};
};
};
}

View file

@ -1,47 +0,0 @@
{
empty = {
plugins.guess-indent.enable = true;
};
defaults = {
plugins.guess-indent = {
enable = true;
settings = {
auto_cmd = true;
override_editorconfig = false;
filetype_exclude = [
"netrw"
"tutor"
];
buftype_exclude = [
"help"
"nofile"
"terminal"
"prompt"
];
on_tab_options = {
"expandtab" = false;
};
on_space_options = {
"expandtab" = true;
"tabstop" = "detected";
"softtabstop" = "detected";
"shiftwidth" = "detected";
};
};
};
};
example = {
plugins.guess-indent = {
enable = true;
settings = {
auto_cmd = false;
override_editorconfig = true;
filetype_exclude = [ "markdown" ];
};
};
};
}

View file

@ -1,489 +0,0 @@
{
empty = {
plugins.hardtime.enable = true;
};
defaults = {
plugins.hardtime = {
enable = true;
settings = {
max_time = 1000;
max_count = 2;
disable_mouse = true;
hint = true;
notification = true;
allow_different_key = false;
enabled = true;
restriction_mode = "block";
resetting_keys = {
"1" = [
"n"
"x"
];
"2" = [
"n"
"x"
];
"3" = [
"n"
"x"
];
"4" = [
"n"
"x"
];
"5" = [
"n"
"x"
];
"6" = [
"n"
"x"
];
"7" = [
"n"
"x"
];
"8" = [
"n"
"x"
];
"9" = [
"n"
"x"
];
"c" = [ "n" ];
"C" = [ "n" ];
"d" = [ "n" ];
"x" = [ "n" ];
"X" = [ "n" ];
"y" = [ "n" ];
"Y" = [ "n" ];
"p" = [ "n" ];
"P" = [ "n" ];
};
restricted_keys = {
"h" = [
"n"
"x"
];
"j" = [
"n"
"x"
];
"k" = [
"n"
"x"
];
"l" = [
"n"
"x"
];
"-" = [
"n"
"x"
];
"+" = [
"n"
"x"
];
"gj" = [
"n"
"x"
];
"gk" = [
"n"
"x"
];
"<CR>" = [
"n"
"x"
];
"<C-M>" = [
"n"
"x"
];
"<C-N>" = [
"n"
"x"
];
"<C-P>" = [
"n"
"x"
];
};
disabled_keys = {
"<Up>" = [
""
"i"
];
"<Down>" = [
""
"i"
];
"<Left>" = [
""
"i"
];
"<Right>" = [
""
"i"
];
};
disabled_file_types = [
"qf"
"netrw"
"NvimTree"
"lazy"
"mason"
];
hints = {
"[kj]%^" = {
message.__raw = ''
function(key)
return "Use "
.. (key == "k^" and "-" or "<CR> or +")
.. " instead of "
.. key
end
'';
length = 2;
};
"%$a" = {
message.__raw = ''
function()
return "Use A instead of $a"
end
'';
length = 2;
};
"%^i" = {
message.__raw = ''
function()
return "Use I instead of ^i"
end
'';
length = 2;
};
"%D[k-]o" = {
message.__raw = ''
function(keys)
return "Use O instead of " .. keys:sub(2)
end
'';
length = 3;
};
"%D[j+]O" = {
message.__raw = ''
function(keys)
return "Use o instead of " .. keys:sub(2)
end
'';
length = 3;
};
"[^fFtT]li" = {
message.__raw = ''
function()
return "Use a instead of li"
end
'';
length = 3;
};
"2([dcy=<>])%1" = {
message.__raw = ''
function(key)
return "Use " .. key:sub(3) .. "j instead of " .. key
end
'';
length = 3;
};
"[^dcy=]f.h" = {
message.__raw = ''
function(keys)
return "Use t" .. keys:sub(3, 3) .. " instead of " .. keys:sub(2)
end
'';
length = 4;
};
"[^dcy=]F.l" = {
message.__raw = ''
function(keys)
return "Use T" .. keys:sub(3, 3) .. " instead of " .. keys:sub(2)
end
'';
length = 4;
};
"[^dcy=]T.h" = {
message.__raw = ''
function(keys)
return "Use F" .. keys:sub(3, 3) .. " instead of " .. keys:sub(2)
end
'';
length = 4;
};
"[^dcy=]t.l" = {
message.__raw = ''
function(keys)
return "Use f" .. keys:sub(3, 3) .. " instead of " .. keys:sub(2)
end
'';
length = 4;
};
"d[bBwWeE%^%$]i" = {
message.__raw = ''
function(keys)
return "Use " .. "c" .. keys:sub(2, 2) .. " instead of " .. keys
end
'';
length = 3;
};
"dg[eE]i" = {
message.__raw = ''
function(keys)
return "Use " .. "c" .. keys:sub(2, 3) .. " instead of " .. keys
end
'';
length = 4;
};
"d[tTfF].i" = {
message.__raw = ''
function(keys)
return "Use " .. "c" .. keys:sub(2, 3) .. " instead of " .. keys
end
'';
length = 4;
};
"d[ia][\"'`{}%[%]()<>bBwWspt]i" = {
message.__raw = ''
function(keys)
return "Use " .. "c" .. keys:sub(2, 3) .. " instead of " .. keys
end
'';
length = 4;
};
"Vgg[dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use " .. keys:sub(4, 4) .. "gg instead of " .. keys
end
'';
length = 4;
};
"Vgg\".[dy]" = {
message.__raw = ''
function(keys)
return "Use " .. keys:sub(4, 6) .. "gg instead of " .. keys
end
'';
length = 6;
};
"VG[dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use " .. keys:sub(3, 3) .. "G instead of " .. keys
end
'';
length = 3;
};
"VG\".[dy]" = {
message.__raw = ''
function(keys)
return "Use " .. keys:sub(3, 5) .. "G instead of " .. keys
end
'';
length = 5;
};
"V%d[kj][dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 4)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 4;
};
"V%d[kj]\".[dy]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 6)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 6;
};
"V%d%d[kj][dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(5, 5)
.. keys:sub(2, 4)
.. " instead of "
.. keys
end
'';
length = 5;
};
"V%d%d[kj]\".[dy]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(5, 7)
.. keys:sub(2, 4)
.. " instead of "
.. keys
end
'';
length = 7;
};
"[vV][bBwWeE%^%$][dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(3, 3)
.. keys:sub(2, 2)
.. " instead of "
.. keys
end
'';
length = 3;
};
"[vV][bBwWeE%^%$]\".[dy]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(3, 5)
.. keys:sub(2, 2)
.. " instead of "
.. keys
end
'';
length = 5;
};
"[vV]g[eE][dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 4)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 4;
};
"[vV]g[eE]\".[dy]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 6)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 6;
};
"[vV][tTfF].[dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 4)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 4;
};
"[vV][tTfF].\".[dy]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 6)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 6;
};
"[vV][ia][\"'`{}%[%]()<>bBwWspt][dcy=<>]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 4)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 4;
};
"[vV][ia][\"'`{}%[%]()<>bBwWspt]\".[dy]" = {
message.__raw = ''
function(keys)
return "Use "
.. keys:sub(4, 6)
.. keys:sub(2, 3)
.. " instead of "
.. keys
end
'';
length = 6;
};
};
};
};
};
example = {
plugins.hardtime = {
enable = true;
settings = {
showmode = false;
};
};
};
}

View file

@ -1,86 +0,0 @@
{
empty = {
# Harpoon expects to access `~/.local/share/nvim/harpoon.json` which is not available in the
# test environment
test.runNvim = false;
plugins.harpoon.enable = true;
};
telescopeEnabled = {
# Harpoon expects to access `~/.local/share/nvim/harpoon.json` which is not available in the
# test environment
test.runNvim = false;
plugins.telescope = {
enable = true;
};
plugins.harpoon = {
enable = true;
enableTelescope = true;
keymapsSilent = true;
keymaps = {
addFile = "<leader>a";
navFile = {
"1" = "<C-j>";
"2" = "<C-k>";
"3" = "<C-l>";
"4" = "<C-m>";
};
navNext = "<leader>b";
navPrev = "<leader>c";
gotoTerminal = {
"1" = "J";
"2" = "K";
"3" = "L";
"4" = "M";
};
cmdToggleQuickMenu = "<leader>d";
tmuxGotoTerminal = {
"1" = "<C-1>";
"2" = "<C-2>";
"{down-of}" = "<leader>g";
};
};
saveOnToggle = false;
saveOnChange = true;
enterOnSendcmd = false;
tmuxAutocloseWindows = false;
excludedFiletypes = [ "harpoon" ];
markBranch = false;
projects = {
"$HOME/personal/vim-with-me/server" = {
termCommands = [ "./env && npx ts-node src/index.ts" ];
};
};
menu = {
width = 60;
height = 10;
borderChars = [
""
""
""
""
""
""
""
""
];
};
};
};
telescopeDisabled = {
# Harpoon expects to access `~/.local/share/nvim/harpoon.json` which is not available in the
# test environment
test.runNvim = false;
plugins.harpoon = {
enable = true;
enableTelescope = false;
};
};
}

View file

@ -1,115 +0,0 @@
{
empty = {
plugins.hop.enable = true;
};
example = {
plugins.hop = {
enable = true;
settings = {
keys = "asdghklqwertyuiopzxcvbnmfj";
quit_key = "<Esc>";
reverse_distribution = false;
x_bias = 10;
teasing = true;
virtual_cursor = true;
jump_on_sole_occurrence = true;
case_insensitive = false;
dim_unmatched = true;
direction = "require'hop.hint'.HintDirection.BEFORE_CURSOR";
hint_position = "require'hop.hint'.HintPosition.BEGIN";
hint_type = "require'hop.hint'.HintType.OVERLAY";
match_mappings = [
"zh"
"zh_sc"
];
};
};
keymaps = [
{
key = "f";
action.__raw = ''
function()
require'hop'.hint_char1({
direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
current_line_only = true
})
end
'';
options.remap = true;
}
{
key = "F";
action.__raw = ''
function()
require'hop'.hint_char1({
direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
current_line_only = true
})
end
'';
options.remap = true;
}
{
key = "t";
action.__raw = ''
function()
require'hop'.hint_char1({
direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
current_line_only = true,
hint_offset = -1
})
end
'';
options.remap = true;
}
{
key = "T";
action.__raw = ''
function()
require'hop'.hint_char1({
direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
current_line_only = true,
hint_offset = 1
})
end
'';
options.remap = true;
}
];
};
defaults = {
plugins.hop = {
enable = true;
settings = {
keys = "asdghklqwertyuiopzxcvbnmfj";
quit_key = "<Esc>";
perm_method = "require'hop.perm'.TrieBacktrackFilling";
reverse_distribution = false;
x_bias = 10;
teasing = true;
virtual_cursor = true;
jump_on_sole_occurrence = true;
ignore_injections = false;
case_insensitive = true;
create_hl_autocmd = true;
dim_unmatched = true;
direction = null;
hint_position = "require'hop.hint'.HintPosition.BEGIN";
hint_type = "require'hop.hint'.HintType.OVERLAY";
hint_offset = 0;
current_line_only = false;
uppercase_labels = false;
yank_register = "";
extensions = null;
multi_windows = false;
excluded_filetypes = [ ];
match_mappings = [ ];
};
};
};
}

View file

@ -1,189 +0,0 @@
{
empty = {
plugins.hydra.enable = true;
};
defaults = {
plugins.hydra = {
enable = false;
settings = {
debug = false;
exit = false;
foreign_keys = null;
color = "red";
buffer = null;
invoke_on_body = false;
desc = null;
on_enter = null;
on_exit = null;
on_key = null;
timeout = false;
hint = {
show_name = true;
position = "bottom";
offset = 0;
};
};
};
};
example = {
plugins = {
# This example turns out to use gitsigns
gitsigns.enable = true;
hydra = {
enable = false;
settings = {
exit = false;
foreign_keys = "run";
color = "red";
buffer = true;
invoke_on_body = false;
desc = null;
on_enter = ''
function()
print('hello')
end
'';
timeout = 5000;
hint = false;
};
hydras = [
{
name = "git";
hint.__raw = ''
[[
_J_: next hunk _s_: stage hunk _d_: show deleted _b_: blame line
_K_: prev hunk _u_: undo stage hunk _p_: preview hunk _B_: blame show full
^ ^ _S_: stage buffer ^ ^ _/_: show base file
^
^ ^ _<Enter>_: Neogit _q_: exit
]]
'';
config = {
color = "pink";
invoke_on_body = true;
hint = {
position = "bottom";
};
on_enter = ''
function()
vim.bo.modifiable = false
gitsigns.toggle_signs(true)
gitsigns.toggle_linehl(true)
end
'';
on_exit = ''
function()
gitsigns.toggle_signs(false)
gitsigns.toggle_linehl(false)
gitsigns.toggle_deleted(false)
vim.cmd("echo") -- clear the echo area
end
'';
};
mode = [
"n"
"x"
];
body = "<leader>g";
heads = [
[
"J"
{
__raw = ''
function()
if vim.wo.diff then
return "]c"
end
vim.schedule(function()
gitsigns.next_hunk()
end)
return "<Ignore>"
end
'';
}
{ expr = true; }
]
[
"K"
{
__raw = ''
function()
if vim.wo.diff then
return "[c"
end
vim.schedule(function()
gitsigns.prev_hunk()
end)
return "<Ignore>"
end
'';
}
{ expr = true; }
]
[
"s"
":Gitsigns stage_hunk<CR>"
{ silent = true; }
]
[
"u"
{ __raw = "require('gitsigns').undo_stage_hunk"; }
]
[
"S"
{ __raw = "require('gitsigns').stage_buffer"; }
]
[
"p"
{ __raw = "require('gitsigns').preview_hunk"; }
]
[
"d"
{ __raw = "require('gitsigns').toggle_deleted"; }
{ nowait = true; }
]
[
"b"
{ __raw = "require('gitsigns').blame_line"; }
]
[
"B"
{
__raw = ''
function()
gitsigns.blame_line({ full = true })
end,
'';
}
]
[
"/"
{ __raw = "require('gitsigns').show"; }
{ exit = true; }
]
[
"<Enter>"
"<cmd>Neogit<CR>"
{ exit = true; }
]
[
"q"
null
{
exit = true;
nowait = true;
}
]
];
}
];
};
};
};
}

View file

@ -1,31 +0,0 @@
{
empty = {
plugins.illuminate.enable = true;
};
example = {
plugins.illuminate = {
enable = true;
delay = 50;
providers = [ "lsp" ];
modesDenylist = [ "n" ];
modesAllowlist = [ "v" ];
underCursor = false;
largeFileCutoff = 10;
minCountToHighlight = 2;
filetypesDenylist = [ "csharp" ];
filetypesAllowlist = [ "python" ];
filetypeOverrides = {
x = {
delay = 10;
providers = [ "treesitter" ];
};
};
largeFileOverrides = {
delay = 20;
underCursor = true;
};
};
};
}

View file

@ -1,57 +0,0 @@
{
empty = {
plugins.improved-search.enable = true;
};
example = {
plugins.improved-search = {
enable = true;
keymaps = [
{
mode = [
"n"
"x"
"o"
];
key = "n";
action = "stable_next";
}
{
mode = [
"n"
"x"
"o"
];
key = "N";
action = "stable_previous";
}
{
mode = "n";
key = "!";
action = "current_word";
}
{
mode = "x";
key = "!";
action = "in_place";
}
{
mode = "x";
key = "*";
action = "forward";
}
{
mode = "x";
key = "#";
action = "backward";
}
{
mode = "n";
key = "|";
action = "in_place";
}
];
};
};
}

View file

@ -1,106 +0,0 @@
{
empty = {
plugins.indent-blankline.enable = true;
};
example = {
plugins.indent-blankline = {
enable = true;
settings = {
indent = {
char = "";
};
scope = {
show_start = false;
show_end = false;
show_exact_scope = true;
};
exclude = {
filetypes = [
""
"checkhealth"
"help"
"lspinfo"
"packer"
"TelescopePrompt"
"TelescopeResults"
"yaml"
];
buftypes = [
"terminal"
"quickfix"
];
};
};
};
};
defaults = {
plugins.indent-blankline = {
enable = true;
settings = {
debounce = 200;
viewport_buffer = {
min = 30;
max = 500;
};
indent = {
char = "";
tab_char = null;
highlight = null;
smart_indent_cap = true;
priority = 1;
};
whitespace = {
highlight = null;
remove_blankline_trail = true;
};
scope = {
enabled = true;
char = null;
show_start = true;
show_end = true;
show_exact_scope = false;
injected_languages = true;
highlight = null;
priority = 1024;
include = {
node_type = { };
};
exclude = {
language = [ ];
node_type = {
"*" = [
"source_file"
"program"
];
lua = [ "chunk" ];
python = [ "module" ];
};
};
};
exclude = {
filetypes = [
"lspinfo"
"packer"
"checkhealth"
"help"
"man"
"gitcommit"
"TelescopePrompt"
"TelescopeResults"
"\'\'"
];
buftypes = [
"terminal"
"nofile"
"quickfix"
"prompt"
];
};
};
};
};
}

View file

@ -1,21 +0,0 @@
{
empty = {
plugins.indent-o-matic.enable = true;
};
example = {
plugins.indent-o-matic = {
enable = true;
settings = {
max_lines = 2048;
skip_multiline = false;
standard_widths = [
2
4
8
];
};
};
};
}

View file

@ -1,26 +0,0 @@
{
empty = {
plugins.instant.enable = true;
};
example = {
plugins.instant = {
enable = true;
settings = {
username = "Joe";
onlyCwd = true;
cursor_hl_group_user1 = "Cursor";
cursor_hl_group_user2 = "Cursor";
cursor_hl_group_user3 = "Cursor";
cursor_hl_group_user4 = "Cursor";
cursor_hl_group_default = "Cursor";
name_hl_group_user1 = "CursorLineNr";
name_hl_group_user2 = "CursorLineNr";
name_hl_group_user3 = "CursorLineNr";
name_hl_group_user4 = "CursorLineNr";
name_hl_group_default = "CursorLineNr";
};
};
};
}

View file

@ -1,24 +0,0 @@
{
empty = {
plugins.lastplace.enable = true;
};
defaults = {
plugins.lastplace = {
enable = true;
ignoreBuftype = [
"quickfix"
"nofix"
"help"
];
ignoreFiletype = [
"gitcommit"
"gitrebase"
"svn"
"hgcommit"
];
openFolds = true;
};
};
}

View file

@ -1,105 +0,0 @@
{
empty = {
plugins.leap.enable = true;
};
# https://github.com/nix-community/nixvim/issues/1698
autojump-disabled = {
plugins.leap = {
enable = true;
safeLabels.__empty = null;
};
};
example = {
plugins.leap = {
enable = true;
addDefaultMappings = true;
maxPhaseOneTargets = 10;
highlightUnlabeledPhaseOneTargets = false;
maxHighlightedTraversalTargets = 10;
caseSensitive = false;
equivalenceClasses = [ " \t\r\n" ];
substituteChars = {
"\r" = "¬";
};
safeLabels = [
"s"
"f"
"n"
"u"
"t"
"/"
"S"
"F"
"N"
"L"
"H"
"M"
"U"
"G"
"T"
"?"
"Z"
];
labels = [
"s"
"f"
"n"
"j"
"k"
"l"
"h"
"o"
"d"
"w"
"e"
"m"
"b"
"u"
"y"
"v"
"r"
"g"
"t"
"c"
"x"
"/"
"z"
"S"
"F"
"N"
"J"
"K"
"L"
"H"
"O"
"D"
"W"
"E"
"M"
"B"
"U"
"Y"
"V"
"R"
"G"
"T"
"C"
"X"
"?"
"Z"
];
specialKeys = {
nextTarget = "<enter>";
prevTarget = "<tab>";
nextGroup = "<space>";
prevGroup = "<tab>";
multiAccept = "<enter>";
multiRevert = "<backspace>";
};
};
};
}

View file

@ -1,21 +0,0 @@
{
empty = {
plugins.magma-nvim.enable = true;
};
defaults = {
plugins.magma-nvim = {
enable = true;
settings = {
image_provider = "none";
automatically_open_output = true;
wrap_output = true;
output_window_borders = true;
cell_highlight_group = "CursorLine";
save_path.__raw = "vim.fn.stdpath('data') .. '/magma'";
show_mimetype_debug = false;
};
};
};
}

View file

@ -1,16 +0,0 @@
{
empty = {
plugins.mark-radar.enable = true;
};
defaults = {
plugins.mark-radar = {
enable = true;
setDefaultMappings = true;
highlightGroup = "RadarMark";
backgroundHighlight = true;
backgroundHighlightGroup = "RadarBackground";
};
};
}

View file

@ -1,23 +0,0 @@
{
empty = {
plugins.marks.enable = true;
};
defaults = {
plugins.marks = {
enable = true;
builtinMarks = [ ];
defaultMappings = true;
signs = true;
cyclic = true;
forceWriteShada = false;
refreshInterval = 150;
signPriority = 10;
excludedFiletypes = [ ];
excludedBuftypes = [ ];
bookmarks = { };
mappings = { };
};
};
}

View file

@ -1,89 +0,0 @@
{
empty = {
plugins.mini.enable = true;
};
allOfficialModules = {
plugins.mini = {
enable = true;
modules = {
ai = {
custom_textobjects = null;
mappings = {
around = "a";
inside = "i";
around_next = "an";
inside_next = "in";
around_last = "al";
inside_last = "il";
goto_left = "g[";
goto_right = "g]";
};
n_lines = 50;
search_method = "cover_or_next";
silent = false;
};
animate = { };
base16 = {
palette = {
base00 = "#123456";
base01 = "#123456";
base02 = "#123456";
base03 = "#123456";
base04 = "#123456";
base05 = "#123456";
base06 = "#123456";
base07 = "#123456";
base08 = "#123456";
base09 = "#123456";
base0A = "#123456";
base0B = "#123456";
base0C = "#123456";
base0D = "#123456";
base0E = "#123456";
base0F = "#123456";
};
};
basics = { };
bracketed = { };
bufremove = { };
colors = { };
comment = { };
completion = { };
cursorword = { };
doc = { };
fuzzy = { };
hipatterns = { };
hues = {
background = "#351721";
foreground = "#cdc4c6";
};
icons = { };
indentscope = { };
jump = { };
jump2d = { };
map = { };
misc = { };
move = { };
pairs = { };
sessions = { };
splitjoin = { };
starter = { };
statusline = { };
surround = { };
tabline = { };
test = { };
trailspace = { };
};
};
};
icons-mock = {
plugins.mini = {
enable = true;
mockDevIcons = true;
modules.icons = { };
};
};
}

View file

@ -1,208 +0,0 @@
{
empty = {
plugins.mkdnflow.enable = true;
};
example = {
plugins.mkdnflow = {
enable = true;
modules = {
bib = true;
buffers = true;
conceal = true;
cursor = true;
folds = true;
links = true;
lists = true;
maps = true;
paths = true;
tables = true;
yaml = false;
};
filetypes = {
md = true;
rmd = true;
markdown = true;
};
createDirs = true;
perspective = {
priority = "first";
fallback = "first";
rootTell = false;
nvimWdHeel = false;
update = true;
};
wrap = false;
bib = {
defaultPath = null;
findInRoot = true;
};
silent = false;
links = {
style = "markdown";
conceal = false;
context = 0;
implicitExtension = null;
transformExplicit = false;
transformImplicit = ''
function(text)
text = text:gsub(" ", "-")
text = text:lower()
text = os.date('%Y-%m-%d_')..text
return(text)
end
'';
};
toDo = {
symbols = [
" "
"-"
"X"
];
updateParents = true;
notStarted = " ";
inProgress = "-";
complete = "X";
};
tables = {
trimWhitespace = true;
formatOnMove = true;
autoExtendRows = false;
autoExtendCols = false;
};
yaml = {
bib = {
override = false;
};
};
mappings = {
MkdnEnter = {
modes = [
"n"
"v"
"i"
];
key = "<CR>";
};
MkdnTab = false;
MkdnSTab = false;
MkdnNextLink = {
modes = "n";
key = "<Tab>";
};
MkdnPrevLink = {
modes = "n";
key = "<S-Tab>";
};
MkdnNextHeading = {
modes = "n";
key = "]]";
};
MkdnPrevHeading = {
modes = "n";
key = "[[";
};
MkdnGoBack = {
modes = "n";
key = "<BS>";
};
MkdnGoForward = {
modes = "n";
key = "<Del>";
};
MkdnFollowLink = false;
MkdnCreateLink = false;
MkdnCreateLinkFromClipboard = {
modes = [
"n"
"v"
];
key = "<leader>p";
};
MkdnDestroyLink = {
modes = "n";
key = "<M-CR>";
};
MkdnMoveSource = {
modes = "n";
key = "<F2>";
};
MkdnYankAnchorLink = {
modes = "n";
key = "ya";
};
MkdnYankFileAnchorLink = {
modes = "n";
key = "yfa";
};
MkdnIncreaseHeading = {
modes = "n";
key = "+";
};
MkdnDecreaseHeading = {
modes = "n";
key = "-";
};
MkdnToggleToDo = {
modes = [
"n"
"v"
];
key = "<C-Space>";
};
MkdnNewListItem = false;
MkdnNewListItemBelowInsert = {
modes = "n";
key = "o";
};
MkdnNewListItemAboveInsert = {
modes = "n";
key = "O";
};
MkdnExtendList = false;
MkdnUpdateNumbering = {
modes = "n";
key = "<leader>nn";
};
MkdnTableNextCell = {
modes = "i";
key = "<Tab>";
};
MkdnTablePrevCell = {
modes = "i";
key = "<S-Tab>";
};
MkdnTableNextRow = false;
MkdnTablePrevRow = {
modes = "i";
key = "<M-CR>";
};
MkdnTableNewRowBelow = {
modes = "n";
key = "<leader>ir";
};
MkdnTableNewRowAbove = {
modes = "n";
key = "<leader>iR";
};
MkdnTableNewColAfter = {
modes = "n";
key = "<leader>ic";
};
MkdnTableNewColBefore = {
modes = "n";
key = "<leader>iC";
};
MkdnFoldSection = {
modes = "n";
key = "<leader>f";
};
MkdnUnfoldSection = {
modes = "n";
key = "<leader>F";
};
};
};
};
}

View file

@ -1,77 +0,0 @@
{
empty = {
plugins.molten.enable = true;
};
defaults = {
plugins.molten = {
enable = true;
settings = {
auto_image_popup = false;
auto_init_behavior = "init";
auto_open_html_in_browser = false;
auto_open_output = true;
cover_empty_lines = false;
cover_lines_starting_with = [ ];
copy_output = false;
enter_output_behavior = "open_then_enter";
image_provider = "none";
open_cmd = null;
output_crop_border = true;
output_show_more = false;
output_virt_lines = false;
output_win_border = [
""
""
""
""
];
output_win_cover_gutter = true;
output_win_hide_on_leave = true;
output_win_max_height = 999999;
output_win_max_width = 999999;
output_win_style = false;
save_path.__raw = "vim.fn.stdpath('data')..'/molten'";
tick_rate = 500;
use_border_highlights = false;
limit_output_chars = 1000000;
virt_lines_off_by_1 = false;
virt_text_output = false;
virt_text_max_lines = 12;
wrap_output = false;
show_mimetype_debug = false;
};
};
};
example = {
plugins.molten = {
enable = true;
settings = {
auto_open_output = true;
copy_output = false;
enter_output_behavior = "open_then_enter";
image_provider = "none";
output_crop_border = true;
output_show_more = false;
output_virt_lines = false;
output_win_border = [
""
""
""
""
];
output_win_cover_gutter = true;
output_win_hide_on_leave = true;
output_win_style = false;
save_path.__raw = "vim.fn.stdpath('data')..'/molten'";
use_border_highlights = false;
virt_lines_off_by1 = false;
wrap_output = false;
show_mimetype_debug = false;
};
};
};
}

View file

@ -1,66 +0,0 @@
{
empty = {
# ERROR: [Hydra.nvim] Option "hint.border" has been deprecated and will be removed on 2024-02-01 -- See hint.float_opts
# Will be fixed by:
# https://github.com/smoka7/multicursors.nvim/pull/91
plugins.multicursors.enable = false;
};
example = {
plugins.multicursors = {
# ERROR: [Hydra.nvim] Option "hint.border" has been deprecated and will be removed on 2024-02-01 -- See hint.float_opts
# Will be fixed by:
# https://github.com/smoka7/multicursors.nvim/pull/91
enable = false;
debugMode = false;
createCommands = true;
updatetime = 50;
nowait = true;
normalKeys = {
# to change default lhs of key mapping, change the key
"," = {
# assigning `null` to method exits from multi cursor mode
# assigning `false` to method removes the binding
method = "require 'multicursors.normal_mode'.clear_others";
# you can pass :map-arguments here
opts = {
desc = "Clear others";
};
};
"<C-/>" = {
method = ''
function()
require('multicursors.utils').call_on_selections(
function(selection)
vim.api.nvim_win_set_cursor(0, { selection.row + 1, selection.col + 1 })
local line_count = selection.end_row - selection.row + 1
vim.cmd('normal ' .. line_count .. 'gcc')
end
)
end
'';
opts = {
desc = "comment selections";
};
};
};
insertKeys = null;
extendKeys = null;
hintConfig = {
type = "window";
position = "bottom";
offset = 0;
border = "none";
showName = true;
funcs = null;
};
generateHints = {
normal = false;
insert = false;
extend = false;
};
};
};
}

View file

@ -1,117 +0,0 @@
{
empty = {
plugins.navbuddy.enable = true;
};
defaults = {
plugins.navbuddy = {
enable = true;
window = {
border = "rounded";
size = {
height = 50;
width = 50;
};
position = {
height = 50;
width = 50;
};
scrolloff = 8;
sections = {
left = {
size = 50;
border = "rounded";
};
mid = {
size = 50;
border = "rounded";
};
right = {
preview = "always";
border = "rounded";
};
};
};
nodeMarkers = {
enabled = true;
icons = {
leaf = " ... ";
leafSelected = " ";
branch = " 󰆧 ";
};
};
icons = {
File = "󰆧 ";
Module = " ";
Namespace = "󰌗 ";
Package = " ";
Class = "󰌗 ";
Method = "󰆧 ";
Property = " ";
Field = " ";
Constructor = " ";
Enum = "󰕘";
Interface = "󰕘";
Function = "󰊕 ";
Variable = "󰆧 ";
Constant = "󰏿 ";
String = "󰀬 ";
Number = "󰎠 ";
Boolean = " ";
Array = "󰅪 ";
Object = "󰅩 ";
Key = "󰌋 ";
Null = "󰟢 ";
EnumMember = " ";
Struct = "󰌗 ";
Event = " ";
Operator = "󰆕 ";
TypeParameter = "󰊄 ";
};
useDefaultMapping = false;
mappings = {
"<esc>" = "close";
"q" = "close";
"j" = "next_sibling";
"k" = "previous_sibling";
"h" = "parent";
"l" = "children";
"0" = "root";
"v" = "visual_name";
"V" = "visual_scope";
"y" = "yank_name";
"Y" = "yank_scope";
"i" = "insert_name";
"I" = "insert_scope";
"a" = "append_name";
"A" = "append_scope";
"r" = "rename";
"d" = "delete";
"f" = "fold_create";
"F" = "fold_delete";
"c" = "comment";
"<enter>" = "select";
"o" = "select";
"J" = "move_down";
"K" = "move_up";
"s" = "toggle_preview";
"<C-v>" = "vsplit";
"<C-s>" = "hsplit";
};
lsp = {
autoAttach = true;
preference = [
"clang"
"pyright"
];
};
sourceBuffer = {
followNode = true;
highlight = true;
reorient = "top";
scrolloff = 8;
};
};
};
}

View file

@ -1,117 +0,0 @@
{
empty = {
plugins.neoclip.enable = true;
};
with-sqlite = {
plugins.neoclip = {
enable = true;
# This triggers the addition of `pkgs.vimPlugins.sqlite-lua` to `extraPlugins`
settings.enable_persistent_history = true;
};
};
example = {
plugins.neoclip = {
enable = true;
settings = {
filter = null;
preview = true;
default_register = "\"";
content_spec_column = false;
on_paste.set_reg = false;
keys = {
telescope = {
i = {
select = "<cr>";
paste = "<c-l>";
paste_behind = "<c-h>";
custom = { };
};
n = {
select = "<cr>";
paste = "p";
paste_behind = "P";
custom = { };
};
};
fzf = {
select = "default";
paste = "ctrl-l";
paste_behind = "ctrl-h";
custom = { };
};
};
};
};
};
defaults = {
plugins.neoclip = {
enable = true;
settings = {
history = 1000;
enable_persistent_history = false;
length_limit = 1048576;
continuous_sync = false;
db_path.__raw = "vim.fn.stdpath('data') .. '/databases/neoclip.sqlite3'";
filter = null;
preview = true;
prompt = null;
default_register = "\"";
default_register_macros = "q";
enable_macro_history = true;
content_spec_column = false;
disable_keycodes_parsing = false;
on_select = {
move_to_front = false;
close_telescope = true;
on_paste = {
set_reg = false;
move_to_front = false;
close_telescope = true;
};
on_replay = {
set_reg = false;
move_to_front = false;
close_telescope = true;
};
on_custom_action = {
close_telescope = true;
};
keys = {
telescope = {
i = {
select = "<cr>";
paste = "<c-p>";
paste_behind = "<c-k>";
replay = "<c-q>";
delete = "<c-d>";
edit = "<c-e>";
custom = { };
};
n = {
select = "<cr>";
paste = "p";
paste_behind = "P";
replay = "q";
delete = "d";
edit = "e";
custom = { };
};
};
fzf = {
select = "default";
paste = "ctrl-p";
paste_behind = "ctrl-k";
custom = { };
};
};
};
};
};
};
}

View file

@ -1,73 +0,0 @@
{
empty = {
# don't run tests as they try to access the network.
test.runNvim = false;
plugins.neocord.enable = true;
};
defaults = {
# don't run tests as they try to access the network.
test.runNvim = false;
plugins.neocord = {
enable = true;
settings = {
# General options.
logo = "auto";
logo_tooltip = null;
main_image = "language";
client_id = "1157438221865717891";
log_level = null;
debounce_timeout = 10;
blacklist = [ ];
file_assets = null;
show_time = true;
global_timer = false;
# Rich presence text options.
editing_text = "Editing %s";
file_explorer_text = "Browsing %s";
git_commit_text = "Committing changes";
plugin_manager_text = "Managing plugins";
reading_text = "Reading %s";
workspace_text = "Working on %s";
line_number_text = "Line %s out of %s";
terminal_text = "Using Terminal";
};
};
};
example = {
# don't run tests as they try to access the network.
test.runNvim = false;
plugins.neocord = {
enable = true;
settings = {
#General options
auto_update = true;
logo = "auto";
logo_tooltip = "Nixvim";
main_image = "language";
client_id = "1157438221865717891";
log_level = null;
debounce_timeout = 10;
enable_line_number = false;
blacklist = [ ];
file_assets = null;
show_time = true;
global_timer = false;
# Rich Presence text options
editing_text = "Editing...";
file_explorer_text = "Browsing...";
git_commit_text = "Committing changes...";
plugin_manager_text = "Managing plugins...";
reading_text = "Reading...";
workspace_text = "Working on %s";
line_number_text = "Line %s out of %s";
terminal_text = "Using Terminal...";
};
};
};
}

View file

@ -1,42 +0,0 @@
{
empty = {
plugins.neogen.enable = true;
};
example = {
plugins.neogen = {
enable = true;
enablePlaceholders = false;
inputAfterComment = false;
keymaps = {
generate = "<leader>a";
generateClass = "<leader>b";
generateFile = "<leader>c";
generateFunction = "<leader>d";
generateType = "<leader>e";
};
keymapsSilent = true;
languages = {
csharp = {
template = {
annotation_convention = "...";
};
};
};
placeholderHighlight = "None";
placeholdersText = {
attribute = "attribute";
class = "class";
description = "description";
kwargs = "kwargs";
parameter = "parameter";
throw = "throw";
tparam = "tparam";
type = "type";
varargs = "varargs";
};
snippetEngine = "vsnip";
};
};
}

View file

@ -1,87 +0,0 @@
{
empty = {
# neorg should be re-packaged in nixpkgs from the luarocks `neorg` package.
# In the meantime, disable the test.
# TODO: re-enable when this will have been fixed upstream.
test.runNvim = false;
plugins.neorg.enable = true;
};
example = {
# neorg should be re-packaged in nixpkgs from the luarocks `neorg` package.
# In the meantime, disable the test.
# TODO: re-enable when this will have been fixed upstream.
test.runNvim = false;
plugins = {
# Treesitter is required when using the "core.defaults" module.
treesitter.enable = true;
neorg = {
enable = true;
lazyLoading = false;
logger = {
plugin = "neorg";
useConsole = true;
highlights = true;
useFile = true;
level = "warn";
modes = {
trace = {
hl = "Comment";
level = "trace";
};
debug = {
hl = "Comment";
level = "debug";
};
info = {
hl = "None";
level = "info";
};
warn = {
hl = "WarningMsg";
level = "warn";
};
error = {
hl = "ErrorMsg";
level = "error";
};
fatal = {
hl = "ErrorMsg";
level = 5;
};
};
floatPrecision = 1.0e-2;
};
modules = {
"core.defaults" = {
__empty = null;
};
"core.dirman" = {
config = {
workspaces = {
work = "~/notes/work";
home = "~/notes/home";
};
};
};
};
};
};
};
telescope-integration = {
plugins = {
telescope.enable = false;
neorg = {
enable = false;
modules."core.integrations.telescope".__empty = null;
};
};
};
}

View file

@ -1,16 +0,0 @@
{ pkgs, ... }:
# Fails on darwin with:
# E5113: Error while calling lua chunk: ...ckages/start/netman.nvim/lua/netman/tools/utils/init.lua:52: Unable to open netman utils cache
pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
empty = {
plugins.netman.enable = true;
};
withNeotree = {
plugins.neo-tree.enable = true;
plugins.netman = {
enable = true;
neoTreeIntegration = true;
};
};
}

View file

@ -1,17 +0,0 @@
{
empty = {
plugins.nix-develop.enable = true;
};
example = {
plugins.nix-develop = {
enable = true;
ignoredVariables = {
HOME = true;
};
separatedVariables = {
"LUA_PATH" = ":";
};
};
};
}

View file

@ -1,31 +0,0 @@
{
empty = {
plugins.notify.enable = true;
};
defaults = {
plugins.notify = {
enable = true;
level = "info";
timeout = 5000;
maxWidth = null;
maxHeight = null;
stages = "fade_in_slide_out";
backgroundColour = "NotifyBackground";
icons = {
error = "";
warn = "";
info = "";
debug = "";
trace = "";
};
onOpen = null;
onClose = null;
render = "default";
minimumWidth = 50;
fps = 30;
topDown = true;
};
};
}

View file

@ -1,64 +0,0 @@
{
empty = {
plugins.nvim-autopairs.enable = true;
};
defaults = {
plugins.nvim-autopairs = {
enable = true;
settings = {
disable_filetype = [
"TelescopePrompt"
"spectre_panel"
];
disable_in_macro = false;
disable_in_visualblock = false;
disable_in_replace_mode = true;
ignored_next_char = "[=[[%w%%%'%[%\"%.%`%$]]=]";
enable_moveright = true;
enable_afterquote = true;
enable_check_bracket_line = true;
enable_bracket_in_quote = true;
enable_abbr = false;
break_undo = true;
check_ts = false;
ts_config = {
lua = [
"string"
"source"
"string_content"
];
javascript = [
"string"
"template_string"
];
};
map_cr = true;
map_bs = true;
map_c_h = false;
map_c_w = false;
fast_wrap = {
map = "<M-e>";
chars = [
"{"
"["
"("
"\""
"'"
];
pattern = ''[=[[%'%"%>%]%)%}%,%`]]=]'';
end_key = "$";
before_key = "h";
after_key = "l";
cursor_pos_before = true;
keys = "qwertyuiopzxcvbnmasdfghjkl";
highlight = "Search";
highlight_grey = "Comment";
manual_position = true;
use_virt_lines = true;
};
};
};
};
}

View file

@ -1,26 +0,0 @@
{
empty = {
plugins.nvim-osc52.enable = true;
# Hide warnings, since this plugin is deprecated
test.checkWarnings = false;
};
defaults = {
plugins.nvim-osc52 = {
enable = true;
maxLength = 0;
silent = false;
trim = false;
keymaps = {
silent = false;
enable = true;
};
};
# Hide warnings, since this plugin is deprecated
test.checkWarnings = false;
};
}

View file

@ -1,72 +0,0 @@
{
empty = {
plugins.nvim-ufo.enable = true;
};
example = {
plugins.nvim-ufo = {
enable = true;
providerSelector = ''
function(bufnr, filetype, buftype)
local ftMap = {
vim = "indent",
python = {"indent"},
git = ""
}
return ftMap[filetype]
end
'';
foldVirtTextHandler = ''
function(virtText, lnum, endLnum, width, truncate)
local newVirtText = {}
local suffix = (' %d '):format(endLnum - lnum)
local sufWidth = vim.fn.strdisplaywidth(suffix)
local targetWidth = width - sufWidth
local curWidth = 0
for _, chunk in ipairs(virtText) do
local chunkText = chunk[1]
local chunkWidth = vim.fn.strdisplaywidth(chunkText)
if targetWidth > curWidth + chunkWidth then
table.insert(newVirtText, chunk)
else
chunkText = truncate(chunkText, targetWidth - curWidth)
local hlGroup = chunk[2]
table.insert(newVirtText, {chunkText, hlGroup})
chunkWidth = vim.fn.strdisplaywidth(chunkText)
-- str width returned from truncate() may less than 2nd argument, need padding
if curWidth + chunkWidth < targetWidth then
suffix = suffix .. (' '):rep(targetWidth - curWidth - chunkWidth)
end
break
end
curWidth = curWidth + chunkWidth
end
table.insert(newVirtText, {suffix, 'MoreMsg'})
return newVirtText
end
'';
};
};
defaults = {
plugins.nvim-ufo = {
enable = true;
openFoldHlTimeout = 400;
providerSelector = null;
closeFoldKinds = { };
foldVirtTextHandler = null;
enableGetFoldVirtText = false;
preview = {
winConfig = {
border = "rounded";
winblend = 12;
winhighlight = "Normal:Normal";
maxheight = 20;
};
mappings = { };
};
};
};
}

View file

@ -1,290 +0,0 @@
{
# Note: we can only use `~/` as a workspace as the workspace folder need to exist in the sandbox.
empty = {
plugins.obsidian = {
enable = true;
# At least one workspaces is needed for the plugin to work
settings.workspaces = [
{
name = "foo";
path = "~/";
}
];
};
};
simple-example = {
plugins = {
cmp.enable = true;
obsidian = {
enable = true;
settings = {
dir = null;
workspaces = [
{
name = "work";
path = "~";
}
];
new_notes_location = "current_dir";
completion = {
nvim_cmp = true;
min_chars = 2;
};
};
};
};
};
complete-example = {
plugins = {
cmp.enable = true;
obsidian = {
enable = false;
settings = {
dir = null;
workspaces = [
{
name = "work";
path = "~/";
overrides = {
notes_subdir = "notes";
};
}
];
log_level = "info";
notes_subdir = "notes";
templates = {
# We cannot set this as it doesn't exist in the testing environment
# subdir = "templates";
date_format = "%Y-%m-%d";
time_format = "%H:%M";
substitutions = { };
};
new_notes_location = "current_dir";
note_id_func = ''
function(title)
-- Create note IDs in a Zettelkasten format with a timestamp and a suffix.
-- In this case a note with the title 'My new note' will be given an ID that looks
-- like '1657296016-my-new-note', and therefore the file name '1657296016-my-new-note.md'
local suffix = ""
if title ~= nil then
-- If title is given, transform it into valid file name.
suffix = title:gsub(" ", "-"):gsub("[^A-Za-z0-9-]", ""):lower()
else
-- If title is nil, just add 4 random uppercase letters to the suffix.
for _ = 1, 4 do
suffix = suffix .. string.char(math.random(65, 90))
end
end
return tostring(os.time()) .. "-" .. suffix
end
'';
note_path_func = ''
function(spec)
-- This is equivalent to the default behavior.
local path = spec.dir / tostring(spec.id)
return path:with_suffix(".md")
end
'';
wiki_link_func = ''
function(opts)
if opts.id == nil then
return string.format("[[%s]]", opts.label)
elseif opts.label ~= opts.id then
return string.format("[[%s|%s]]", opts.id, opts.label)
else
return string.format("[[%s]]", opts.id)
end
end
'';
markdown_link_func = ''
function(opts)
return string.format("[%s](%s)", opts.label, opts.path)
end
'';
preferred_link_style = "wiki";
follow_url_func = ''
function(url)
-- Open the URL in the default web browser.
vim.fn.jobstart({"open", url}) -- Mac OS
-- vim.fn.jobstart({"xdg-open", url}) -- linux
end
'';
image_name_func = ''
function()
-- Prefix image names with timestamp.
return string.format("%s-", os.time())
end
'';
note_frontmatter_func = ''
function(note)
-- Add the title of the note as an alias.
if note.title then
note:add_alias(note.title)
end
local out = { id = note.id, aliases = note.aliases, tags = note.tags }
-- `note.metadata` contains any manually added fields in the frontmatter.
-- So here we just make sure those fields are kept in the frontmatter.
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
for k, v in pairs(note.metadata) do
out[k] = v
end
end
return out
end
'';
disable_frontmatter = false;
completion = {
nvim_cmp = true;
min_chars = 2;
};
mappings = {
gf = {
action = "require('obsidian').util.gf_passthrough";
opts = {
noremap = false;
expr = true;
buffer = true;
};
};
"<leader>ch" = {
action = "require('obsidian').util.toggle_checkbox";
opts.buffer = true;
};
};
picker = {
name = "telescope.nvim";
note_mappings = {
new = "<C-x>";
insert_link = "<C-l>";
};
tag_mappings = {
tag_note = "<C-x>";
insert_tag = "<C-l>";
};
};
daily_notes = {
folder = "notes";
date_format = "%Y-%m-%d";
alias_format = "%B %-d, %Y";
template = "daily.md";
};
use_advanced_uri = false;
open_app_foreground = false;
sort_by = "modified";
sort_reversed = true;
open_notes_in = "current";
ui = {
enable = true;
update_debounce = 200;
checkboxes = {
" " = {
char = "󰄱";
hl_group = "ObsidianTodo";
};
"x" = {
char = "";
hl_group = "ObsidianDone";
};
">" = {
char = "";
hl_group = "ObsidianRightArrow";
};
"~" = {
char = "󰰱";
hl_group = "ObsidianTilde";
};
};
bullets = {
char = "";
hl_group = "ObsidianBullet";
};
external_link_icon = {
char = "";
hl_group = "ObsidianExtLinkIcon";
};
reference_text = {
hl_group = "ObsidianRefText";
};
highlight_text = {
hl_group = "ObsidianHighlightText";
};
tags = {
hl_group = "ObsidianTag";
};
hl_groups = {
ObsidianTodo = {
bold = true;
fg = "#f78c6c";
};
ObsidianDone = {
bold = true;
fg = "#89ddff";
};
ObsidianRightArrow = {
bold = true;
fg = "#f78c6c";
};
ObsidianTilde = {
bold = true;
fg = "#ff5370";
};
ObsidianRefText = {
underline = true;
fg = "#c792ea";
};
ObsidianExtLinkIcon = {
fg = "#c792ea";
};
ObsidianTag = {
italic = true;
fg = "#89ddff";
};
ObsidianHighlightText = {
bg = "#75662e";
};
};
};
attachments = {
img_folder = "assets/imgs";
img_text_func = ''
function(client, path)
---@type string
local link_path
local vault_relative_path = client:vault_relative_path(path)
if vault_relative_path ~= nil then
-- Use relative path if the image is saved in the vault dir.
link_path = vault_relative_path
else
-- Otherwise use the absolute path.
link_path = tostring(path)
end
local display_name = vim.fs.basename(link_path)
return string.format("![%s](%s)", display_name, link_path)
end
'';
confirm_img_paste = true;
};
callbacks = {
post_setup = "function(client) end";
enter_note = "function(client, note) end";
leave_note = "function(client, note) end";
pre_write_note = "function(client, note) end";
post_set_workspace = "function(client, workspace) end";
};
yaml_parser = "native";
};
};
};
};
}

View file

@ -1,208 +0,0 @@
{
empty = {
plugins.oil.enable = true;
};
short-example = {
plugins.oil = {
enable = true;
settings = {
columns = [ "icon" ];
view_options.show_hidden = false;
win_options = {
wrap = false;
signcolumn = "no";
cursorcolumn = false;
foldcolumn = "0";
spell = false;
list = false;
conceallevel = 3;
concealcursor = "ncv";
};
keymaps = {
"<C-c>" = false;
"<leader>qq" = "actions.close";
"<C-l>" = false;
"<C-r>" = "actions.refresh";
"y." = "actions.copy_entry_path";
};
skip_confirm_for_simple_edits = true;
};
};
};
example = {
plugins.oil = {
enable = true;
settings = {
default_file_explorer = true;
columns = [
{
__unkeyed = "type";
highlight = "Foo";
icons = { };
}
{
__unkeyed = "icon";
highlight = "Foo";
defaultFile = "bar";
directory = "dir";
}
{
__unkeyed = "size";
highlight = "Foo";
}
{
__unkeyed = "permissions";
highlight = "Foo";
}
{
__unkeyed = "ctime";
highlight = "Foo";
format = "format";
}
{
__unkeyed = "mtime";
highlight = "Foo";
format = "format";
}
{
__unkeyed = "atime";
highlight = "Foo";
format = "format";
}
{
__unkeyed = "birthtime";
highlight = "Foo";
format = "format";
}
];
buf_options = {
buflisted = false;
bufhidden = "hide";
};
win_options = {
wrap = false;
signcolumn = "no";
cursorcolumn = false;
foldcolumn = "0";
spell = false;
list = false;
conceallevel = 3;
concealcursor = "nvic";
};
delete_to_trash = false;
skip_confirm_for_simple_edits = false;
prompt_save_on_select_new_entry = true;
cleanup_delay_ms = 2000;
lsp_file_method = {
timeout_ms = 1000;
autosave_changes = true;
};
constrain_cursor = "editable";
experimental_watch_for_changes = false;
keymaps = {
"g?" = "actions.show_help";
"<CR>" = "actions.select";
"<C-s>" = "actions.select_vsplit";
"<C-h>" = "actions.select_split";
"<C-t>" = "actions.select_tab";
"<C-p>" = "actions.preview";
"<C-c>" = "actions.close";
"<C-l>" = "actions.refresh";
"-" = "actions.parent";
"_" = "actions.open_cwd";
"`" = "actions.cd";
"~" = "actions.tcd";
"g." = "actions.toggle_hidden";
};
keymaps_help = {
border = "rounded";
};
use_default_keymaps = true;
view_options = {
show_hidden = false;
is_hidden_file = ''
function(name, bufnr)
return vim.startswith(name, ".")
end
'';
is_always_hidden = ''
function(name, bufnr)
return false
end
'';
natural_order = true;
sort = [
[
"type"
"asc"
]
[
"name"
"asc"
]
];
};
float = {
padding = 2;
max_width = 0;
max_height = 0;
border = "rounded";
win_options = {
winblend = 0;
};
override = ''
function(conf)
return conf
end
'';
};
preview = {
max_width = 0.9;
min_width = [
40
0.4
];
width = null;
max_height = 0.9;
min_height = [
5
0.1
];
height = null;
border = "rounded";
win_options = {
winblend = 0;
};
update_on_cursor_moved = true;
};
progress = {
max_width = 0.9;
min_width = [
40
0.4
];
width = null;
max_height = 0.9;
min_height = [
5
0.1
];
height = null;
border = "rounded";
minimized_border = "none";
win_options = {
winblend = 0;
};
};
ssh = {
border = "rounded";
};
};
};
};
}

View file

@ -1,52 +0,0 @@
{
empty = {
plugins.ollama.enable = true;
};
example = {
plugins.ollama = {
enable = true;
model = "mistral";
prompts = {
# disable prompt
Sample_Prompt = false;
my-prompt = {
prompt = "Hello $input $sel. J'aime le fromage.";
inputLabel = "> ";
action = {
fn = ''
function(prompt)
return function(body, job)
end
end
'';
opts.stream = true;
};
model = "foo";
extract = "```$ftype\n(.-)```";
options = {
mirostat_eta = 0.1;
num_thread = 8;
repeat_last_n = -1;
stop = "arrêt";
};
system = "system";
format = "json";
};
};
action = "display";
url = "http://127.0.0.1:11434";
serve = {
onStart = false;
command = "ollama";
args = [ "serve" ];
stopCommand = "pkill";
stopArgs = [
"-SIGTERM"
"ollama"
];
};
};
};
}

View file

@ -1,21 +0,0 @@
{
empty = {
plugins.persistence.enable = true;
};
defaults = {
plugins.persistence = {
enable = true;
dir.__raw = ''vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/")'';
options = [
"buffers"
"curdir"
"tabpages"
"winsize"
];
preSave = null;
saveEmpty = false;
};
};
}

View file

@ -1,37 +0,0 @@
{
empty = {
plugins.presence-nvim.enable = true;
};
defaults = {
plugins.presence-nvim = {
enable = true;
# General options.
autoUpdate = true;
neovimImageText = "The One True Text Editor";
mainImage = "neovim";
clientId = "793271441293967371";
logLevel = null;
debounceTimeout = 10;
enableLineNumber = false;
blacklist = [ ];
fileAssets = null;
showTime = true;
buttons = [ ];
# Rich presence text options.
editingText = "Editing %s";
fileExplorerText = "Browsing %s";
gitCommitText = "Committing changes";
pluginManagerText = "Managing plugins";
readingText = "Reading %s";
workspaceText = "Working on %s";
lineNumberText = "Line %s out of %s";
};
};
}

View file

@ -1,43 +0,0 @@
{
empty = {
plugins.project-nvim.enable = true;
};
telescopeEnabled = {
plugins.telescope = {
enable = true;
};
plugins.project-nvim = {
enable = true;
enableTelescope = true;
};
};
defaults = {
plugins.project-nvim = {
enable = true;
settings = {
manual_mode = false;
detection_methods = [
"lsp"
"pattern"
];
patterns = [
".git"
"_darcs"
".hg"
".bzr"
".svn"
"Makefile"
"package.json"
];
ignore_lsp = [ ];
exclude_dirs = [ ];
show_hidden = false;
silent_chdir = true;
scope_chdir = "global";
data_path.__raw = "vim.fn.stdpath('data')";
};
};
};
}

View file

@ -1,16 +0,0 @@
{
empty = {
plugins.quickmath.enable = true;
};
example = {
plugins.quickmath = {
enable = true;
keymap = {
key = "<leader>q";
silent = true;
};
};
};
}

View file

@ -1,70 +0,0 @@
{
empty = {
plugins.refactoring.enable = true;
};
example = {
plugins.refactoring = {
enable = true;
settings = {
prompt_func_return_type = {
go = true;
};
prompt_func_param_type = {
go = true;
};
printf_statements = {
cpp = [ "std::cout << \"%s\" << std::endl;" ];
};
print_var_statements = {
cpp = [ "printf(\"a custom statement %%s %s\", %s)" ];
};
extract_var_statements = {
go = "%s := %s // poggers";
};
show_success_message = true;
};
};
};
withTelescope = {
plugins.telescope.enable = true;
plugins.refactoring = {
enable = true;
enableTelescope = true;
};
};
defaults = {
plugins.refactoring = {
enable = true;
settings = {
prompt_func_return_type = {
go = false;
java = false;
cpp = false;
c = false;
h = false;
hpp = false;
cxx = false;
};
prompt_func_param_type = {
go = false;
java = false;
cpp = false;
c = false;
h = false;
hpp = false;
cxx = false;
};
printf_statements = { };
print_var_statements = { };
extract_var_statements = { };
show_success_message = false;
};
};
};
}

View file

@ -1,5 +0,0 @@
{
empty = {
plugins.repeat.enable = true;
};
}

View file

@ -1,107 +0,0 @@
{
empty = {
# As of 2024-05-07, the lua dependencies of luaPackage.rest-nvim are not correctly propagated to
# the vim plugin.
# TODO: re-enable this test when this issue will have been fixed
test.runNvim = false;
plugins.rest.enable = true;
};
defaults = {
# As of 2024-05-07, the lua dependencies of luaPackage.rest-nvim are not correctly propagated to
# the vim plugin.
# TODO: re-enable this test when this issue will have been fixed
test.runNvim = false;
plugins.rest = {
enable = true;
settings = {
client = "curl";
env_file = ".env";
env_pattern = "\\.env$";
env_edit_command = "tabedit";
encode_url = true;
skip_ssl_verification = false;
custom_dynamic_variables = { };
logs = {
level = "info";
save = true;
};
result = {
split = {
horizontal = false;
in_place = false;
stay_in_current_window_after_split = true;
};
behavior = {
show_info = {
url = true;
headers = true;
http_info = true;
curl_command = true;
};
decode_url = true;
statistics = {
enable = true;
stats = [
{
__unkeyed = "total_time";
title = "Time taken:";
}
{
__unkeyed = "size_download_t";
title = "Download size:";
}
];
};
formatters = {
json = "jq";
html.__raw = ''
function(body)
if vim.fn.executable("tidy") == 0 then
return body, { found = false, name = "tidy" }
end
local fmt_body = vim.fn.system({
"tidy",
"-i",
"-q",
"--tidy-mark", "no",
"--show-body-only", "auto",
"--show-errors", "0",
"--show-warnings", "0",
"-",
}, body):gsub("\n$", "")
return fmt_body, { found = true, name = "tidy" }
end
'';
};
};
keybinds = {
buffer_local = false;
prev = "H";
next = "L";
};
};
highlight = {
enable = true;
timeout = 750;
};
keybinds = [
[
"<localleader>rr"
"<cmd>Rest run<cr>"
"Run request under the cursor"
]
[
"<localleader>rl"
"<cmd>Rest run last<cr>"
"Re-run latest request"
]
];
};
};
};
}

View file

@ -1,26 +0,0 @@
{
empty = {
plugins.sandwich.enable = true;
};
example = {
plugins.sandwich = {
enable = true;
settings = {
no_default_key_mappings = 1;
no_tex_ftplugin = 1;
no_vim_ftplugin = 1;
};
};
globals."sandwich#magicchar#f#patterns" = [
{
header.__raw = "[[\<\%(\h\k*\.\)*\h\k*]]";
bra = "(";
ket = ")";
footer = "";
}
];
};
}

View file

@ -1,34 +0,0 @@
{
empty = {
plugins.scope.enable = true;
};
defaults = {
plugins.scope = {
enable = true;
settings.hooks = {
pre_tab_enter = null;
post_tab_enter = null;
pre_tab_leave = null;
post_tab_leave = null;
pre_tab_close = null;
post_tab_close = null;
};
};
};
example = {
plugins.scope = {
enable = true;
settings = {
hooks = {
pre_tab_enter.__raw = ''
function()
print("Example hook, about to enter tab")
end
'';
};
};
};
};
}

View file

@ -1,17 +0,0 @@
{
empty = {
plugins.sleuth.enable = true;
};
example = {
plugins.sleuth = {
enable = true;
settings = {
heuristics = 1;
gitcommit_heuristics = 0;
no_filetype_indent_on = 1;
};
};
};
}

View file

@ -1,33 +0,0 @@
{
empty = {
plugins.smart-splits.enable = true;
};
example = {
plugins.smart-splits = {
enable = true;
settings = {
ignored_filetypes = [
"nofile"
"quickfix"
"prompt"
];
ignored_buftypes = [ "NvimTree" ];
default_amount = 3;
move_cursor_same_row = true;
cursor_follows_swapped_bufs = true;
resize_mode = {
quit_key = "<ESC>";
resize_keys = [
"h"
"j"
"k"
"l"
];
silent = true;
};
};
};
};
}

View file

@ -1,293 +0,0 @@
{ pkgs, ... }:
{
empty = {
plugins.spectre.enable = true;
};
package-options-manual = {
plugins.spectre = {
enable = true;
findPackage = pkgs.ripgrep;
replacePackage = pkgs.gnused;
};
};
package-options-from-settings = {
plugins.spectre = {
enable = true;
settings.default = {
find.cmd = "rg";
replace.cmd = "sed";
};
};
};
example = {
plugins.spectre = {
enable = true;
settings = {
live_update = true;
is_insert_mode = false;
find_engine = {
rg = {
cmd = "rg";
args = [
"--color=never"
"--no-heading"
"--with-filename"
"--line-number"
"--column"
];
options = {
ignore-case = {
value = "--ignore-case";
icon = "[I]";
desc = "ignore case";
};
hidden = {
value = "--hidden";
desc = "hidden file";
icon = "[H]";
};
line = {
value = "-x";
icon = "[L]";
desc = "match in line";
};
word = {
value = "-w";
icon = "[W]";
desc = "match in word";
};
};
};
};
default = {
find = {
cmd = "rg";
options = [
"word"
"hidden"
];
};
replace = {
cmd = "sed";
};
};
};
};
};
defaults = {
plugins.spectre = {
enable = true;
settings = {
filetype = "spectre_panel";
namespace.__raw = "vim.api.nvim_create_namespace('SEARCH_PANEL')";
namespace_ui.__raw = "vim.api.nvim_create_namespace('SEARCH_PANEL_UI')";
namespace_header.__raw = "vim.api.nvim_create_namespace('SEARCH_PANEL_HEADER')";
namespace_status.__raw = "vim.api.nvim_create_namespace('SEARCH_PANEL_STATUS')";
namespace_result.__raw = "vim.api.nvim_create_namespace('SEARCH_PANEL_RESULT')";
lnum_UI = 8;
line_result = 10;
line_sep_start = "";
result_padding = " ";
line_sep = "";
color_devicons = true;
open_cmd = "vnew";
live_update = false;
lnum_for_results = false;
highlight = {
headers = "SpectreHeader";
ui = "SpectreBody";
filename = "SpectreFile";
filedirectory = "SpectreDir";
search = "SpectreSearch";
border = "SpectreBorder";
replace = "SpectreReplace";
};
mapping = {
tab = {
map = "<Tab>";
cmd = "<cmd>lua require('spectre').tab()<cr>";
desc = "next query";
};
shift-tab = {
map = "<S-Tab>";
cmd = "<cmd>lua require('spectre').tab_shift()<cr>";
desc = "previous query";
};
toggle_line = {
map = "dd";
cmd = "<cmd>lua require('spectre').toggle_line()<CR>";
desc = "toggle item";
};
enter_file = {
map = "<cr>";
cmd = "<cmd>lua require('spectre.actions').select_entry()<CR>";
desc = "open file";
};
send_to_qf = {
map = "<leader>q";
cmd = "<cmd>lua require('spectre.actions').send_to_qf()<CR>";
desc = "send all items to quickfix";
};
replace_cmd = {
map = "<leader>c";
cmd = "<cmd>lua require('spectre.actions').replace_cmd()<CR>";
desc = "input replace command";
};
show_option_menu = {
map = "<leader>o";
cmd = "<cmd>lua require('spectre').show_options()<CR>";
desc = "show options";
};
run_current_replace = {
map = "<leader>rc";
cmd = "<cmd>lua require('spectre.actions').run_current_replace()<CR>";
desc = "replace item";
};
run_replace = {
map = "<leader>R";
cmd = "<cmd>lua require('spectre.actions').run_replace()<CR>";
desc = "replace all";
};
change_view_mode = {
map = "<leader>v";
cmd = "<cmd>lua require('spectre').change_view()<CR>";
desc = "change result view mode";
};
change_replace_sed = {
map = "trs";
cmd = "<cmd>lua require('spectre').change_engine_replace('sed')<CR>";
desc = "use sed to replace";
};
change_replace_oxi = {
map = "tro";
cmd = "<cmd>lua require('spectre').change_engine_replace('oxi')<CR>";
desc = "use oxi to replace";
};
toggle_live_update = {
map = "tu";
cmd = "<cmd>lua require('spectre').toggle_live_update()<CR>";
desc = "update when vim writes to file";
};
toggle_ignore_case = {
map = "ti";
cmd = "<cmd>lua require('spectre').change_options('ignore-case')<CR>";
desc = "toggle ignore case";
};
toggle_ignore_hidden = {
map = "th";
cmd = "<cmd>lua require('spectre').change_options('hidden')<CR>";
desc = "toggle search hidden";
};
resume_last_search = {
map = "<leader>l";
cmd = "<cmd>lua require('spectre').resume_last_search()<CR>";
desc = "repeat last search";
};
select_template = {
map = "<leader>rp";
cmd = "<cmd>lua require('spectre.actions').select_template()<CR>";
desc = "pick template";
};
};
find_engine = {
rg = {
cmd = "rg";
args = [
"--color=never"
"--no-heading"
"--with-filename"
"--line-number"
"--column"
];
options = {
ignore-case = {
value = "--ignore-case";
icon = "[I]";
desc = "ignore case";
};
hidden = {
value = "--hidden";
desc = "hidden file";
icon = "[H]";
};
};
};
ag = {
cmd = "ag";
args = [
"--vimgrep"
"-s"
];
options = {
ignore-case = {
value = "-i";
icon = "[I]";
desc = "ignore case";
};
hidden = {
value = "--hidden";
desc = "hidden file";
icon = "[H]";
};
};
};
};
replace_engine = {
sed = {
cmd = "sed";
args = [
"-i"
"-E"
];
options = {
ignore-case = {
value = "--ignore-case";
icon = "[I]";
desc = "ignore case";
};
};
};
oxi = {
cmd = "oxi";
args = [ ];
options = {
ignore-case = {
value = "i";
icon = "[I]";
desc = "ignore case";
};
};
};
sd = {
cmd = "sd";
options = { };
};
};
default = {
find = {
cmd = "rg";
options = [ "ignore-case" ];
};
replace = {
cmd = "sed";
};
};
replace_vim_cmd = "cdo";
is_open_target_win = true;
is_insert_mode = false;
is_block_ui_break = false;
open_template = { };
};
};
};
}

View file

@ -1,22 +0,0 @@
{
empty = {
plugins.spider.enable = true;
};
example = {
plugins.spider = {
enable = true;
skipInsignificantPunctuation = true;
keymaps = {
silent = true;
motions = {
w = "w";
e = "e";
b = "b";
g = "ge";
};
};
};
};
}

View file

@ -1,108 +0,0 @@
{
empty = {
plugins.startify.enable = true;
};
example = {
plugins.startify = {
enable = true;
settings = {
session_dir = "~/.vim/session";
lists = [
{
type = "files";
header = [ " MRU" ];
}
{
type = "dir";
header = [ { __raw = "' MRU' .. vim.loop.cwd()"; } ];
}
{
type = "sessions";
header = [ " Sessions" ];
}
{
type = "bookmarks";
header = [ " Bookmarks" ];
}
{
type = "commands";
header = [ " Commands" ];
}
];
commands = [
":help reference"
[
"Vim Reference"
"h ref"
]
{ h = "h ref"; }
{
m = [
"My magical function"
"call Magic()"
];
}
];
files_number = 10;
update_oldfiles = false;
session_autoload = false;
session_before_save = [ "silent! tabdo NERDTreeClose" ];
session_persistence = false;
session_delete_buffers = true;
change_to_dir = true;
change_to_vcs_root = false;
change_cmd = "lcd";
skiplist = [
"\.vimgolf"
"^/tmp"
"/project/.*/documentation"
];
fortune_use_unicode = false;
padding_left = 3;
skiplist_server = [ "GVIM" ];
enable_special = true;
enable_unsafe = false;
session_remove_lines = [
"setlocal"
"winheight"
];
session_savevars = [
"g:startify_session_savevars"
"g:startify_session_savecmds"
"g:random_plugin_use_feature"
];
session_savecmds = [ "silent !pdfreader ~/latexproject/main.pdf &" ];
session_number = 999;
session_sort = false;
custom_indices = [
"f"
"g"
"h"
];
custom_header = [
""
" "
" "
" "
" "
" "
" "
];
custom_header_quotes = [
[ "quote #1" ]
[
"quote #2"
"using"
"three lines"
]
];
custom_footer = null;
disable_at_vimenter = false;
relative_path = false;
use_env = false;
};
};
};
}

View file

@ -1,199 +0,0 @@
{
empty = {
plugins.startup.enable = true;
};
builtin-theme = {
plugins.startup = {
enable = true;
theme = "dashboard";
# Default options
options = {
mappingKeys = true;
cursorColumn = 0.5;
after = null;
emptyLinesBetweenMappings = true;
disableStatuslines = true;
paddings = [ ];
};
mappings = {
executeCommand = "<CR>";
openFile = "o";
openFileSplit = "<c-o>";
openSection = "<TAB>";
openHelp = "?";
};
colors = {
background = "#1f2227";
foldedSection = "#56b6c2";
};
userMappings = {
"<leader>ff" = "<cmd>Telescope find_files<CR>";
"<leader>lg" = "<cmd>Telescope live_grep<CR>";
};
};
};
# Replicate the settings of the 'evil' theme
custom-section-evil = {
plugins.startup = {
enable = true;
sections = {
header = {
type = "text";
align = "center";
foldSection = false;
title = "Header";
margin = 5;
content.__raw = "require('startup.headers').hydra_header";
highlight = "Statement";
defaultColor = "";
oldfilesAmount = 0;
};
header_2 = {
type = "text";
oldfilesDirectory = false;
align = "center";
foldSection = false;
title = "Quote";
margin = 5;
content.__raw = "require('startup.functions').quote()";
highlight = "Constant";
defaultColor = "";
oldfilesAmount = 0;
};
body = {
type = "mapping";
align = "center";
foldSection = true;
title = "Basic Commands";
margin = 5;
content = [
[
" Find File"
"Telescope find_files"
"<leader>ff"
]
[
"󰍉 Find Word"
"Telescope live_grep"
"<leader>lg"
]
[
" Recent Files"
"Telescope oldfiles"
"<leader>of"
]
[
" File Browser"
"Telescope file_browser"
"<leader>fb"
]
[
" Colorschemes"
"Telescope colorscheme"
"<leader>cs"
]
[
" New File"
"lua require'startup'.new_file()"
"<leader>nf"
]
];
highlight = "String";
defaultColor = "";
oldfilesAmount = 0;
};
body_2 = {
type = "oldfiles";
oldfilesDirectory = true;
align = "center";
foldSection = true;
title = "Oldfiles of Directory";
margin = 5;
content = [ ];
highlight = "String";
defaultColor = "#FFFFFF";
oldfilesAmount = 5;
};
footer = {
type = "oldfiles";
oldfilesDirectory = false;
align = "center";
foldSection = true;
title = "Oldfiles";
margin = 5;
content = [ "startup.nvim" ];
highlight = "TSString";
defaultColor = "#FFFFFF";
oldfilesAmount = 5;
};
clock = {
type = "text";
content.__raw = ''
function()
local clock = " " .. os.date("%H:%M")
local date = " " .. os.date("%d-%m-%y")
return { clock, date }
end
'';
oldfilesDirectory = false;
align = "center";
foldSection = false;
title = "";
margin = 5;
highlight = "TSString";
defaultColor = "#FFFFFF";
oldfilesAmount = 10;
};
footer_2 = {
type = "text";
content.__raw = "require('startup.functions').packer_plugins()";
oldfilesDirectory = false;
align = "center";
foldSection = false;
title = "";
margin = 5;
highlight = "TSString";
defaultColor = "#FFFFFF";
oldfilesAmount = 10;
};
};
options = {
after = ''
function()
require("startup.utils").oldfiles_mappings()
end
'';
mappingKeys = true;
cursorColumn = 0.5;
emptyLinesBetweenMappings = true;
disableStatuslines = true;
paddings = [
2
2
2
2
2
2
2
];
};
colors = {
background = "#1f2227";
foldedSection = "#56b6c2";
};
parts = [
"header"
"header_2"
"body"
"body_2"
"footer"
"clock"
"footer_2"
];
};
};
}

View file

@ -1,54 +0,0 @@
{
# Empty configuration
empty = {
plugins.tmux-navigator.enable = true;
};
# Activate all settings
defaults = {
plugins.tmux-navigator = {
enable = true;
keymaps = [ ];
settings = {
save_on_switch = 2;
disable_when_zoomed = 1;
preserve_zoom = 1;
no_wrap = 1;
no_mappings = 1;
};
};
};
with-keymap = {
plugins.tmux-navigator = {
enable = true;
keymaps = [
{
key = "<C-w>h";
action = "left";
}
{
key = "<C-w>j";
action = "down";
}
{
key = "<C-w>k";
action = "up";
}
{
key = "<C-w>l";
action = "right";
}
{
key = "<C-w>\\";
action = "previous";
}
];
settings.no_mappings = 1;
};
};
}

View file

@ -1,188 +0,0 @@
{
empty = {
plugins.todo-comments.enable = true;
};
defaults = {
plugins.todo-comments = {
enable = true;
settings = {
signs = true;
sign_priority = 8;
keywords = {
FIX = {
icon = " ";
color = "error";
alt = [
"FIXME"
"BUG"
"FIXIT"
"ISSUE"
];
signs = false;
};
TODO = {
icon = " ";
color = "info";
};
HACK = {
icon = " ";
color = "warning";
};
WARN = {
icon = " ";
color = "warning";
alt = [
"WARNING"
"XXX"
];
};
PERF = {
icon = " ";
alt = [
"OPTIM"
"PERFORMANCE"
"OPTIMIZE"
];
};
NOTE = {
icon = " ";
color = "hint";
alt = [ "INFO" ];
};
TEST = {
icon = " ";
color = "test";
alt = [
"TESTING"
"PASSED"
"FAILED"
];
};
};
gui_style = {
fg = "NONE";
bg = "BOLD";
};
merge_keywords = true;
highlight = {
multiline = true;
multiline_pattern = "^.";
multiline_context = 10;
before = "";
keyword = "wide";
after = "fg";
pattern = ''.*<(KEYWORDS)\s*:'';
comments_only = true;
max_line_len = 400;
exclude = [ ];
};
colors = {
error = [
"DiagnosticError"
"ErrorMsg"
"#DC2626"
];
warning = [
"DiagnosticWarn"
"WarningMsg"
"#FBBF24"
];
info = [
"DiagnosticInfo"
"#2563EB"
];
hint = [
"DiagnosticHint"
"#10B981"
];
default = [
"Identifier"
"#7C3AED"
];
test = [
"Identifier"
"#FF00FF"
];
};
search = {
command = "rg";
args = [
"--color=never"
"--no-heading"
"--with-filename"
"--line-number"
"--column"
];
pattern = ''\b(KEYWORDS):'';
};
};
};
};
keymaps-options = {
plugins = {
trouble.enable = true;
telescope.enable = true;
todo-comments = {
enable = true;
keymaps = {
todoQuickFix.key = "<C-a>";
todoLocList = {
key = "<C-f>";
cwd = "~/projects/foobar";
keywords = [
"TODO"
"FIX"
];
options.silent = true;
};
todoTrouble = {
key = "<C-f>";
keywords = [
"TODO"
"FIX"
];
options = {
desc = "Description for todoTrouble";
silent = true;
};
};
todoTelescope = {
key = "<C-e>";
cwd = "~/projects/foobar";
};
};
};
};
};
without-ripgrep = {
plugins.todo-comments = {
enable = true;
ripgrepPackage = null;
};
};
highlight-pattern-list = {
plugins.todo-comments = {
enable = true;
settings = {
highlight = {
pattern = [ ".*<(KEYWORDS)\s*:" ];
};
};
};
};
}

View file

@ -1,141 +0,0 @@
{
empty = {
plugins.toggleterm.enable = true;
};
simple-example = {
plugins.toggleterm = {
enable = true;
settings = {
open_mapping = "[[<c-\>]]";
direction = "float";
float_opts = {
border = "curved";
width = 130;
height = 30;
};
};
};
};
example = {
plugins.toggleterm = {
enable = true;
settings = {
size = ''
function(term)
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 = ''
function()
return math.ceil(vim.o.columns * 0.8)
end
'';
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
'';
};
};
};
};
}

View file

@ -1,36 +0,0 @@
{
empty = {
plugins.trim.enable = true;
};
defaults = {
plugins.trim = {
enable = true;
settings = {
ft_blocklist = [ ];
patterns = [ ];
trim_on_write = true;
trim_trailing = true;
trim_last_line = true;
trim_first_line = true;
highlight = false;
highlight_bg = "#ff0000";
highlight_ctermbg = "red";
};
};
};
example = {
plugins.trim = {
enable = true;
settings = {
ft_blocklist = [ "markdown" ];
patterns = [ "[[%s/\(\n\n\)\n\+/\1/]]" ];
trim_on_write = false;
highlight = true;
};
};
};
}

View file

@ -1,33 +0,0 @@
{
empty = {
plugins.undotree.enable = true;
};
example = {
plugins.undotree = {
enable = true;
settings = {
WindowLayout = 4;
ShortIndicators = false;
DiffpanelHeight = 10;
DiffAutoOpen = true;
SetFocusWhenToggle = true;
SplitWidth = 40;
TreeNodeShape = "*";
TreeVertShape = "|";
TreeSplitShape = "/";
TreeReturnShape = "\\";
DiffCommand = "diff";
RelativeTimestamp = true;
HighlightChangedText = true;
HighlightChangedWithSign = true;
HighlightSyntaxAdd = "DiffAdd";
HighlightSyntaxChange = "DiffChange";
HighlightSyntaxDel = "DiffDelete";
HelpLine = true;
CursorLine = true;
};
};
};
}

View file

@ -1,18 +0,0 @@
{
empty = {
plugins.vim-bbye.enable = true;
};
test = {
plugins.vim-bbye = {
enable = true;
keymapsSilent = false;
keymaps = {
bdelete = "<C-w>";
bwipeout = "<C-t>";
};
};
};
}

View file

@ -1,5 +0,0 @@
{
empty = {
plugins.vim-css-color.enable = true;
};
}

View file

@ -1,5 +0,0 @@
{
empty = {
plugins.wakatime.enable = true;
};
}

View file

@ -1,5 +0,0 @@
{
empty = {
plugins.web-devicons.enable = true;
};
}

View file

@ -1,294 +0,0 @@
{
empty = {
plugins.which-key.enable = true;
};
defaults = {
plugins.which-key = {
enable = true;
settings = {
preset = "classic";
delay.__raw = ''
function(ctx)
return ctx.plugin and 0 or 200
end
'';
filter.__raw = ''
function(mapping)
return true
end
'';
spec = [ ];
notify = true;
triggers = [
{
__unkeyed = "<auto>";
mode = "nsxot";
}
];
defer.__raw = ''
function(ctx)
return ctx.mode == "V" or ctx.mode == "<C-V>"
end
'';
plugins = {
marks = true;
registers = true;
spelling = {
enabled = true;
suggestions = 20;
};
presets = {
operators = true;
motions = true;
text_objects = true;
windows = true;
nav = true;
z = true;
g = true;
};
};
win = {
no_overlap = true;
padding = [
1
2
];
title = true;
title_pos = "center";
zindex = 1000;
bo = { };
wo = { };
};
layout = {
width = {
min = 20;
};
spacing = 3;
};
keys = {
scroll_down = "<c-d>";
scroll_up = "<c-u>";
};
sort = [
"local"
"order"
"group"
"alphanum"
"mod"
];
expand = 0;
replace = {
key = [
{
__raw = ''
function(key)
return require("which-key.view").format(key)
end
'';
}
];
desc = [
[
"<Plug>%(?(.*)%)?"
"%1"
]
[
"^%+"
""
]
[
"<[cC]md>"
""
]
[
"<[cC][rR]>"
""
]
[
"<[sS]ilent>"
""
]
[
"^lua%s+"
""
]
[
"^call%s+"
""
]
[
"^:%s*"
""
]
];
};
icons = {
breadcrumb = "»";
separator = "";
group = "+";
ellipsis = "";
mappings = true;
rules = [ ];
colors = true;
keys = {
Up = " ";
Down = " ";
Left = " ";
Right = " ";
C = "󰘴 ";
M = "󰘵 ";
D = "󰘳 ";
S = "󰘶 ";
CR = "󰌑 ";
Esc = "󱊷 ";
ScrollWheelDown = "󱕐 ";
ScrollWheelUp = "󱕑 ";
NL = "󰌑 ";
BS = "󰁮";
Space = "󱁐 ";
Tab = "󰌒 ";
F1 = "󱊫";
F2 = "󱊬";
F3 = "󱊭";
F4 = "󱊮";
F5 = "󱊯";
F6 = "󱊰";
F7 = "󱊱";
F8 = "󱊲";
F9 = "󱊳";
F10 = "󱊴";
F11 = "󱊵";
F12 = "󱊶";
};
};
show_help = true;
show_keys = true;
disable = {
bt = [ ];
ft = [ ];
};
debug = false;
};
};
};
# Testing for registrations
mappings = {
plugins.which-key = {
enable = true;
settings = {
spec =
let
mode = [
"n"
"v"
"i"
"t"
"c"
"x"
"s"
"o"
];
in
[
{
__unkeyed-1 = "<leader>f";
group = "Group Test";
inherit mode;
}
{
__unkeyed-1 = "<leader>ff";
desc = "Label Test";
inherit mode;
}
{
__unkeyed-1 = "<leader>f1";
__unkeyed-2.__raw = ''
function()
print("Raw Lua KeyMapping Test")
end
'';
desc = "Raw Lua KeyMapping Test";
inherit mode;
}
{
__unkeyed-1 = "<leader>foo";
desc = "Label Test 2";
inherit mode;
}
{
__unkeyed-1 = "<leader>f<tab>";
group = "Group in Group Test";
inherit mode;
}
{
__unkeyed-1 = "<leader>f<tab>f";
__unkeyed-2 = "<cmd>echo 'Vim cmd KeyMapping Test'<cr>";
desc = "Vim cmd KeyMapping Test";
inherit mode;
}
# Nested mapping
{
mode = [
"n"
"v"
];
__unkeyed-1 = [
{
__unkeyed-1 = "<leader>f";
group = "Group Test";
}
{
__unkeyed-1 = "<leader>f<tab>";
group = "Group in Group Test";
}
];
}
# Create mapping
{
__unkeyed-1 = "<leader>cS";
__unkeyed-2 = "<cmd>CodeSnapSave<CR>";
mode = "v";
desc = "Save";
}
# Function mapping
{
__unkeyed-1 = "<leader>db";
__unkeyed-2.__raw = ''
function()
require("dap").toggle_breakpoint()
end
'';
mode = "n";
desc = "Breakpoint toggle";
silent = true;
}
];
};
};
};
}

View file

@ -1,52 +0,0 @@
{
empty = {
plugins.wilder.enable = true;
};
example = {
plugins.wilder = {
enable = true;
enableCmdlineEnter = true;
modes = [
"/"
"?"
];
wildcharm = "&wildchar";
nextKey = "<Tab>";
prevKey = "<S-Tab>";
acceptKey = "<Down>";
rejectKey = "<Up>";
acceptCompletionAutoSelect = true;
useCmdlinechanged = false;
interval = 100;
beforeCursor = false;
usePythonRemotePlugin = true;
numWorkers = 2;
pipeline = [
''
wilder.branch(
wilder.cmdline_pipeline({
language = 'python',
fuzzy = 1,
}),
wilder.python_search_pipeline({
pattern = wilder.python_fuzzy_pattern(),
sorter = wilder.python_difflib_sorter(),
engine = 're',
})
)
''
];
renderer = ''
wilder.wildmenu_renderer({
-- highlighter applies highlighting to the candidates
highlighter = wilder.basic_highlighter(),
})
'';
preHook = null;
postHook = null;
};
};
}

View file

@ -1,115 +0,0 @@
{
empty = {
plugins.yanky.enable = true;
};
with-telescope = {
plugins = {
telescope.enable = true;
yanky = {
enable = true;
enableTelescope = true;
};
};
};
defaults = {
plugins.yanky = {
enable = true;
settings = {
ring = {
history_length = 100;
storage = "shada";
storage_path.__raw = "vim.fn.stdpath('data') .. '/databases/yanky.db'";
sync_with_numbered_registers = true;
cancel_event = "update";
ignore_registers = [ "_" ];
update_register_on_cycle = false;
};
picker = {
select = {
action = null;
};
telescope = {
use_default_mappings = true;
mappings = null;
};
};
system_clipboard = {
sync_with_ring = true;
clipboard_register = null;
};
highlight = {
on_put = true;
on_yank = true;
timer = 500;
};
preserve_cursor_position = {
enabled = true;
};
textobj = {
enabled = true;
};
};
};
};
example = {
plugins = {
telescope.enable = true;
yanky = {
enable = true;
enableTelescope = true;
settings = {
ring = {
history_length = 100;
storage = "sqlite";
storage_path.__raw = "vim.fn.stdpath('data') .. '/databases/yanky.db'";
sync_with_numbered_registers = true;
cancel_event = "update";
ignore_registers = [ "_" ];
update_register_on_cycle = false;
};
telescope = {
use_default_mappings = true;
mappings = {
default = "mapping.put('p')";
i = {
"<c-g>" = "mapping.put('p')";
"<c-k>" = "mapping.put('P')";
"<c-x>" = "mapping.delete()";
"<c-r>" = "mapping.set_register(utils.get_default_register())";
};
n = {
p = "mapping.put('p')";
P = "mapping.put('P')";
d = "mapping.delete()";
r = "mapping.set_register(utils.get_default_register())";
};
};
};
system_clipboard = {
sync_with_ring = true;
clipboard_register = null;
};
highlight = {
on_put = true;
on_yank = true;
timer = 500;
};
preserve_cursor_position = {
enabled = true;
};
textobj = {
enabled = true;
};
};
};
};
};
}

View file

@ -1,18 +0,0 @@
{
empty = {
plugins.zellij.enable = true;
};
defaults = {
plugins.zellij = {
enable = true;
settings = {
path = "zellij";
replaceVimWindowNavigationKeybinds = false;
vimTmuxNavigatorKeybinds = false;
debug = false;
};
};
};
}

View file

@ -1,28 +0,0 @@
{
empty = {
plugins.zk.enable = true;
};
defaults = {
plugins.zk = {
enable = true;
settings = {
picker = "select";
lsp = {
config = {
cmd = [
"zk"
"lsp"
];
name = "zk";
};
auto_attach = {
enabled = true;
filetypes = [ "markdown" ];
};
};
};
};
};
}