treewide: Reformat with nixfmt

This commit is contained in:
traxys 2024-05-05 19:39:35 +02:00
parent c6281260dc
commit 62f32bfc71
459 changed files with 28139 additions and 26377 deletions

View file

@ -24,10 +24,10 @@
animation = true;
autoHide = false;
clickable = true;
excludeFileTypes = [];
excludeFileNames = [];
excludeFileTypes = [ ];
excludeFileNames = [ ];
focusOnClose = "left";
hide = {};
hide = { };
highlightAlternate = false;
highlightInactiveFileIcons = false;
highlightVisible = true;
@ -35,16 +35,22 @@
bufferIndex = false;
bufferNumber = false;
button = "";
diagnostics = {};
filetype = {enable = true;};
diagnostics = { };
filetype = {
enable = true;
};
inactive = {
separator = {
left = "";
right = "";
};
};
modified = {button = "";};
pinned = {button = "";};
modified = {
button = "";
};
pinned = {
button = "";
};
separator = {
left = "";
right = "";
@ -58,7 +64,7 @@
minimumPadding = 1;
noNameTitle = null;
semanticLetters = true;
sidebarFiletypes = {};
sidebarFiletypes = { };
tabpages = true;
};
};

View file

@ -9,8 +9,11 @@
attachNavic = true;
createAutocmd = true;
includeBuftypes = [""];
excludeFiletypes = ["netrw" "toggleterm"];
includeBuftypes = [ "" ];
excludeFiletypes = [
"netrw"
"toggleterm"
];
modifiers = {
dirname = ":~:.";
basename = "";

View file

@ -82,21 +82,21 @@
diagnosticsUpdateInInsert = true;
offsets = null;
groups = {
items = [];
items = [ ];
options = {
toggleHiddenOnEnter = true;
};
};
hover = {
enabled = false;
reveal = [];
reveal = [ ];
delay = 200;
};
debug = {
logging = false;
};
customFilter = null;
highlights = {};
highlights = { };
};
};
}

View file

@ -37,7 +37,10 @@
};
lsp = {
autoAttach = true;
preference = ["clangd" "pyright"];
preference = [
"clangd"
"pyright"
];
};
highlight = true;
separator = " | ";

View file

@ -9,7 +9,7 @@
settings = {
mirage = false;
overrides = {};
overrides = { };
};
};
};

View file

@ -26,21 +26,21 @@
no_bold = false;
no_underline = false;
styles = {
comments = ["italic"];
conditionals = ["italic"];
loops = [];
functions = [];
keywords = [];
strings = [];
variables = [];
numbers = [];
booleans = [];
properties = [];
types = [];
operators = [];
comments = [ "italic" ];
conditionals = [ "italic" ];
loops = [ ];
functions = [ ];
keywords = [ ];
strings = [ ];
variables = [ ];
numbers = [ ];
booleans = [ ];
properties = [ ];
types = [ ];
operators = [ ];
};
color_overrides = {};
custom_highlights = {};
color_overrides = { };
custom_highlights = { };
default_integrations = true;
integrations = {
alpha = true;
@ -78,16 +78,16 @@
native_lsp = {
enabled = true;
virtual_text = {
errors = ["italic"];
hints = ["italic"];
warnings = ["italic"];
information = ["italic"];
errors = [ "italic" ];
hints = [ "italic" ];
warnings = [ "italic" ];
information = [ "italic" ];
};
underlines = {
errors = ["underline"];
hints = ["underline"];
warnings = ["underline"];
information = ["underline"];
errors = [ "underline" ];
hints = [ "underline" ];
warnings = [ "underline" ];
information = [ "underline" ];
};
inlay_hints = {
background = true;
@ -123,18 +123,21 @@
mantle = "#242424";
crust = "#474747";
};
frappe = {};
macchiato = {};
mocha = {};
frappe = { };
macchiato = { };
mocha = { };
};
styles = {
booleans = ["bold" "italic"];
conditionals = ["bold"];
functions = ["bold"];
keywords = ["italic"];
loops = ["bold"];
operators = ["bold"];
properties = ["italic"];
booleans = [
"bold"
"italic"
];
conditionals = [ "bold" ];
functions = [ "bold" ];
keywords = [ "italic" ];
loops = [ "bold" ];
operators = [ "bold" ];
properties = [ "italic" ];
};
integrations = {
cmp = true;

View file

@ -16,8 +16,8 @@
terminal_colors = true;
theme = {
highlights = {};
colors = {};
highlights = { };
colors = { };
};
};
};

View file

@ -10,11 +10,17 @@
settings = {
compile = false;
undercurl = true;
commentStyle = {italic = true;};
functionStyle = {};
keywordStyle = {italic = true;};
statementStyle = {bold = true;};
typeStyle = {};
commentStyle = {
italic = true;
};
functionStyle = { };
keywordStyle = {
italic = true;
};
statementStyle = {
bold = true;
};
typeStyle = { };
transparent = false;
dimInactive = false;
terminalColors = true;

View file

@ -60,8 +60,8 @@
lualine = {
transparent = false;
};
colors = {};
highlights = {};
colors = { };
highlights = { };
diagnostics = {
darker = true;
undercurl = true;

View file

@ -14,9 +14,9 @@
state = "pastel";
};
custom_palettes = {
main = {};
accent = {};
state = {};
main = { };
accent = { };
state = { };
};
italics = true;
transparent_background = false;

View file

@ -46,7 +46,7 @@
h6 = "blue2";
};
};
highlight_groups = {};
highlight_groups = { };
};
};
};

View file

@ -15,12 +15,15 @@
styles = {
comments.italic = true;
keywords.italic = true;
functions = {};
variables = {};
functions = { };
variables = { };
sidebars = "dark";
floats = "dark";
};
sidebars = ["qf" "help"];
sidebars = [
"qf"
"help"
];
day_brightness = 0.3;
hide_inactive_statusline = false;
dim_inactive = false;

View file

@ -1,8 +1,5 @@
{ pkgs, cmp-sources, ... }:
{
pkgs,
cmp-sources,
...
}: {
all-sources = {
plugins = {
copilot-lua = {
@ -14,24 +11,16 @@
cmp = {
enable = true;
settings.sources = with pkgs.lib; let
disabledSources =
optional
(pkgs.stdenv.hostPlatform.system == "aarch64-linux")
"cmp_tabnine";
settings.sources =
with pkgs.lib;
let
disabledSources = optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
filterFunc = sourceName: !(elem sourceName disabledSources);
filterFunc = sourceName: !(elem sourceName disabledSources);
sourceNames =
filter
filterFunc
(attrNames cmp-sources);
in
map
(
sourceName: {name = sourceName;}
)
sourceNames;
sourceNames = filter filterFunc (attrNames cmp-sources);
in
map (sourceName: { name = sourceName; }) sourceNames;
};
};
};

View file

@ -3,14 +3,18 @@
plugins = {
cmp = {
enable = true;
settings.sources = [
{name = "git";}
];
settings.sources = [ { name = "git"; } ];
};
cmp-git.settings = {
filetypes = ["gitcommit" "octo"];
remotes = ["upstream" "origin"];
filetypes = [
"gitcommit"
"octo"
];
remotes = [
"upstream"
"origin"
];
enableRemoteUrlRewrites = false;
git = {
commits = {
@ -20,9 +24,15 @@
};
};
github = {
hosts = [];
hosts = [ ];
issues = {
fields = ["title" "number" "body" "updatedAt" "state"];
fields = [
"title"
"number"
"body"
"updatedAt"
"state"
];
filter = "all";
limit = 100;
state = "open";
@ -35,7 +45,13 @@
format.__raw = "require('cmp_git.format').github.mentions";
};
pull_requests = {
fields = ["title" "number" "body" "updatedAt" "state"];
fields = [
"title"
"number"
"body"
"updatedAt"
"state"
];
limit = 100;
state = "open";
sort_by.__raw = "require('cmp_git.sort').github.pull_requests";
@ -43,7 +59,7 @@
};
};
gitlab = {
hosts = [];
hosts = [ ];
issues = {
limit = 100;
state = "opened";
@ -126,13 +142,15 @@
plugins = {
cmp = {
enable = true;
settings.sources = [
{name = "git";}
];
settings.sources = [ { name = "git"; } ];
};
cmp-git.settings = {
remotes = ["upstream" "origin" "foo"];
remotes = [
"upstream"
"origin"
"foo"
];
github = {
issues = {
filter = "all";

View file

@ -2,9 +2,7 @@
empty = {
plugins.cmp = {
enable = true;
settings.sources = [
{name = "cmp_tabby";}
];
settings.sources = [ { name = "cmp_tabby"; } ];
};
};
@ -12,15 +10,13 @@
plugins = {
cmp = {
enable = true;
settings.sources = [
{name = "cmp_tabby";}
];
settings.sources = [ { name = "cmp_tabby"; } ];
};
cmp-tabby = {
host = "http://localhost:5000";
maxLines = 100;
runOnEveryKeyStroke = true;
stop = ["\n"];
stop = [ "\n" ];
};
};
};

View file

@ -61,7 +61,7 @@
completion = {
keywordLength = 1;
keywordPattern = ''[[\%(-\?\d\+\%(\.\d\+\)\?\|\h\w*\%(-\w*\)*\)]]'';
autocomplete = ["TextChanged"];
autocomplete = [ "TextChanged" ];
completeopt = "menu,menuone,noselect";
};
confirmation = {
@ -73,7 +73,11 @@
};
formatting = {
expandableIndicator = true;
fields = ["abbr" "kind" "menu"];
fields = [
"abbr"
"kind"
"menu"
];
format = ''
function(_, vim_item)
return vim_item
@ -100,7 +104,7 @@
"order"
];
};
sources = [];
sources = [ ];
experimental = {
ghost_text = false;
};
@ -115,7 +119,16 @@
};
window = {
completion = {
border = ["" "" "" "" "" "" "" ""];
border = [
""
""
""
""
""
""
""
""
];
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None";
scrolloff = 0;
colOffset = 0;
@ -138,14 +151,14 @@
enable = true;
settings.sources = [
{name = "path";}
{name = "nvim_lsp";}
{name = "luasnip";}
{ name = "path"; }
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{
name = "buffer";
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
}
{name = "neorg";}
{ name = "neorg"; }
];
};
};

View file

@ -7,9 +7,7 @@
plugins.cmp = {
enable = true;
settings.sources = [
{name = "codeium";}
];
settings.sources = [ { name = "codeium"; } ];
};
};

View file

@ -13,15 +13,16 @@
};
copilot-cmp = {
event = ["InsertEnter" "LspAttach"];
event = [
"InsertEnter"
"LspAttach"
];
fixPairs = true;
};
cmp = {
enable = true;
settings.sources = [
{name = "copilot";}
];
settings.sources = [ { name = "copilot"; } ];
};
};
};

View file

@ -14,7 +14,7 @@
};
proxy = "localhost:3128";
proxy_strict_ssl = false;
workspace_folders = ["~/Projects/myproject"];
workspace_folders = [ "~/Projects/myproject" ];
};
};
};

View file

@ -22,7 +22,7 @@
short_name = "COP";
accept_key = "<c-f>";
}
{src = "demo";}
{ src = "demo"; }
];
};
};

View file

@ -11,7 +11,10 @@
executables = {
python = {
command = ".virtualenvs/tools/bin/python";
args = ["-m" "debugpy.adapter"];
args = [
"-m"
"debugpy.adapter"
];
};
};
servers = {
@ -54,10 +57,10 @@
enable = true;
adapters = {
executables = {};
servers = {};
executables = { };
servers = { };
};
configurations = {};
configurations = { };
signs = {
dapStopped = {
text = "";

View file

@ -20,7 +20,7 @@
path = "dlv";
initializeTimeoutSec = 20;
port = "$\{port}";
args = [];
args = [ ];
buildFlags = "-tags=unit";
};
};

View file

@ -22,12 +22,15 @@
terminate = "";
};
};
elementMappings = {};
elementMappings = { };
expandLines = true;
floating = {
border = "single";
mappings = {
close = ["q" "<Esc>"];
close = [
"q"
"<Esc>"
];
};
};
forceBuffers = true;
@ -76,7 +79,10 @@
];
mappings = {
edit = "e";
expand = ["<CR>" "<2-LeftMouse>"];
expand = [
"<CR>"
"<2-LeftMouse>"
];
open = "o";
remove = "d";
repl = "r";

View file

@ -10,8 +10,13 @@
options = {
follow = true;
mimetypes = {
warn = ["audio" "font" "image" "video"];
allowExts = [".ts"];
warn = [
"audio"
"font"
"image"
"video"
];
allowExts = [ ".ts" ];
};
pageIncrement = 5;
pollingRate = 2.0;
@ -19,14 +24,23 @@
showHidden = false;
versionControl = true;
ignore = {
nameExact = [".DS_Store" ".directory" "thumbs.db" ".git"];
nameGlob = [];
pathGlob = [];
nameExact = [
".DS_Store"
".directory"
"thumbs.db"
".git"
];
nameGlob = [ ];
pathGlob = [ ];
};
};
view = {
openDirection = "left";
sortBy = ["is_folder" "ext" "file_name"];
sortBy = [
"is_folder"
"ext"
"file_name"
];
width = 40;
windowOptions = {
cursorline = true;
@ -50,58 +64,70 @@
};
keymap = {
windowManagement = {
quit = ["q"];
bigger = ["+" "="];
smaller = ["-" "_"];
refresh = ["<c-r>"];
quit = [ "q" ];
bigger = [
"+"
"="
];
smaller = [
"-"
"_"
];
refresh = [ "<c-r>" ];
};
rerooting = {
changeDir = ["b"];
changeFocus = ["c"];
changeFocusUp = ["C"];
changeDir = [ "b" ];
changeFocus = [ "c" ];
changeFocusUp = [ "C" ];
};
openFileFolder = {
primary = ["<enter>"];
secondary = ["<tab>" "<2-leftmouse>"];
tertiary = ["<m-enter>" "<middlemouse>"];
vSplit = ["w"];
hSplit = ["W"];
openSys = ["o"];
collapse = ["o"];
primary = [ "<enter>" ];
secondary = [
"<tab>"
"<2-leftmouse>"
];
tertiary = [
"<m-enter>"
"<middlemouse>"
];
vSplit = [ "w" ];
hSplit = [ "W" ];
openSys = [ "o" ];
collapse = [ "o" ];
};
cursor = {
refocus = ["~"];
jumpToCurrent = ["J"];
stat = ["K"];
copyName = ["y"];
copyBasename = ["Y"];
copyRelname = ["<c-y>"];
refocus = [ "~" ];
jumpToCurrent = [ "J" ];
stat = [ "K" ];
copyName = [ "y" ];
copyBasename = [ "Y" ];
copyRelname = [ "<c-y>" ];
};
filtering = {
filter = ["f"];
clearFilter = ["F"];
filter = [ "f" ];
clearFilter = [ "F" ];
};
bookmarks = {
bookmarkGoto = ["m"];
bookmarkGoto = [ "m" ];
};
selecting = {
select = ["s"];
clearSelection = ["S"];
select = [ "s" ];
clearSelection = [ "S" ];
};
fileOperations = {
new = ["a"];
link = ["A"];
rename = ["r"];
toggleExec = ["X"];
copy = ["p"];
cut = ["x"];
delete = ["d"];
trash = ["t"];
new = [ "a" ];
link = [ "A" ];
rename = [ "r" ];
toggleExec = [ "X" ];
copy = [ "p" ];
cut = [ "x" ];
delete = [ "d" ];
trash = [ "t" ];
};
toggles = {
toggleHidden = ["."];
toggleFollow = ["u"];
toggleVersionControl = ["i"];
toggleHidden = [ "." ];
toggleFollow = [ "u" ];
toggleVersionControl = [ "i" ];
};
};
};

View file

@ -7,7 +7,11 @@
plugins.neo-tree = {
enable = true;
sources = ["filesystem" "buffers" "git_status"];
sources = [
"filesystem"
"buffers"
"git_status"
];
addBlankLineAtTop = false;
autoCleanAfterSessionRestore = false;
@ -238,7 +242,7 @@
"bufnr"
];
};
nestingRules = {};
nestingRules = { };
window = {
position = "left";
width = 40;
@ -268,7 +272,9 @@
"<esc>" = "revert_preview";
P = {
command = "toggle_preview";
config = {use_float = true;};
config = {
use_float = true;
};
};
l = "focus_preview";
S = "open_split";
@ -340,10 +346,10 @@
".DS_Store"
"thumbs.db"
];
hideByPattern = [];
alwaysShow = [];
neverShow = [];
neverShowByPattern = [];
hideByPattern = [ ];
alwaysShow = [ ];
neverShow = [ ];
neverShowByPattern = [ ];
};
findByFullPathWords = false;
findCommand = "fd";

View file

@ -13,14 +13,14 @@
openOnSetup = true;
openOnSetupFile = true;
ignoreBufferOnSetup = true;
ignoreFtOnSetup = ["tex"];
ignoreFtOnSetup = [ "tex" ];
autoClose = true;
autoReloadOnWrite = true;
sortBy = "name";
hijackUnnamedBufferWhenOpening = false;
hijackCursor = false;
rootDirs = [];
rootDirs = [ ];
preferStartupRoot = false;
syncRootWithCwd = false;
reloadOnBufenter = false;
@ -32,11 +32,11 @@
updateFocusedFile = {
enable = false;
updateRoot = false;
ignoreList = [];
ignoreList = [ ];
};
systemOpen = {
cmd = "";
args = [];
args = [ ];
};
diagnostics = {
enable = false;
@ -69,7 +69,7 @@
filesystemWatchers = {
enable = true;
debounceDelay = 50;
ignoreDirs = [];
ignoreDirs = [ ];
};
onAttach = "default";
selectPrompts = false;
@ -157,15 +157,20 @@
};
};
};
specialFiles = ["Cargo.toml" "Makefile" "README.md" "readme.md"];
specialFiles = [
"Cargo.toml"
"Makefile"
"README.md"
"readme.md"
];
symlinkDestination = true;
};
filters = {
dotfiles = false;
gitClean = false;
noBuffer = false;
custom = [];
exclude = [];
custom = [ ];
exclude = [ ];
};
actions = {
changeDir = {
@ -175,7 +180,7 @@
};
expandAll = {
maxFolderDiscovery = 300;
exclude = [];
exclude = [ ];
};
filePopup = {
openWinConfig = {
@ -195,8 +200,19 @@
picker = "default";
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
exclude = {
filetype = ["notify" "packer" "qf" "diff" "fugitive" "fugitiveblame"];
buftype = ["nofile" "terminal" "help"];
filetype = [
"notify"
"packer"
"qf"
"diff"
"fugitive"
"fugitiveblame"
];
buftype = [
"nofile"
"terminal"
"help"
];
};
};
removeFile = {
@ -212,7 +228,7 @@
sync = {
open = false;
close = false;
ignore = [];
ignore = [ ];
};
};
notify = {

View file

@ -9,8 +9,8 @@
diffBinaries = true;
enhancedDiffHl = true;
gitCmd = ["git"];
hgCmd = ["hg"];
gitCmd = [ "git" ];
hgCmd = [ "hg" ];
useIcons = false;
showHelpHints = false;
watchIndex = true;
@ -47,7 +47,7 @@
winConfig = {
position = "right";
width = 20;
winOpts = {};
winOpts = { };
};
};
fileHistoryPanel = {
@ -60,21 +60,21 @@
multiFile.diffMerges = "first-parent";
};
hg = {
singleFile = {};
multiFile = {};
singleFile = { };
multiFile = { };
};
};
winConfig = {
position = "top";
height = 10;
winOpts = {};
winOpts = { };
};
};
commitLogPanel.winConfig.winOpts = {};
commitLogPanel.winConfig.winOpts = { };
defaultArgs = {
diffviewOpen = ["HEAD"];
diffviewFileHistory = ["%"];
diffviewOpen = [ "HEAD" ];
diffviewFileHistory = [ "%" ];
};
hooks = {
viewOpened = ''

View file

@ -10,11 +10,20 @@
settings = {
floating_window_winblend = 0;
floating_window_scaling_factor = 0.9;
floating_window_border_chars = ["" "" "" "" "" "" "" ""];
floating_window_border_chars = [
""
""
""
""
""
""
""
""
];
floating_window_use_plenary = false;
use_neovim_remote = true;
use_custom_config_file_path = false;
config_file_path = [];
config_file_path = [ ];
};
};
};

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
plugins.neogit.enable = true;
};
@ -6,7 +7,7 @@
defaults = {
# Otherwise `os.execute('which gpg')` returns an error and make the whole test derivation fail
# (option `settings.commit_view.verify_commit`)
extraPackages = [pkgs.gnupg];
extraPackages = [ pkgs.gnupg ];
plugins.neogit = {
enable = true;
@ -73,9 +74,18 @@
kind = "split";
};
signs = {
hunk = ["" ""];
item = [">" "v"];
section = [">" "v"];
hunk = [
""
""
];
item = [
">"
"v"
];
section = [
">"
"v"
];
};
integrations = {
telescope = null;

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
# Godot is only available on Linux
plugins.godot.enable = pkgs.stdenv.isLinux;

View file

@ -28,7 +28,7 @@
lean = {
enable = true;
lsp = {};
lsp = { };
ft = {
default = "lean";
nomodifiable = null;
@ -78,7 +78,7 @@
height = 5;
onLines = "function(lines) vim.notify(lines) end";
};
lsp3 = {};
lsp3 = { };
};
};
};

View file

@ -8,18 +8,18 @@
enable = true;
lintersByFt = {
text = ["vale"];
json = ["jsonlint"];
markdown = ["vale"];
rst = ["vale"];
ruby = ["ruby"];
janet = ["janet"];
inko = ["inko"];
text = [ "vale" ];
json = [ "jsonlint" ];
markdown = [ "vale" ];
rst = [ "vale" ];
ruby = [ "ruby" ];
janet = [ "janet" ];
inko = [ "inko" ];
# As of 2024-03-27, pkgs.graalvm-ce (a dependency of pkgs.clj-kondo) is broken on x86_64-darwin
# TODO: re-enable this test when fixed
# clojure = ["clj-kondo"];
dockerfile = ["hadolint"];
terraform = ["tflint"];
dockerfile = [ "hadolint" ];
terraform = [ "tflint" ];
};
linters = {
phpcs.args = [
@ -33,7 +33,7 @@
cmd = "foo_cmd";
stdin = true;
append_fname = false;
args = [];
args = [ ];
stream = "stderr";
ignore_exitcode = false;
env = {

View file

@ -18,25 +18,25 @@
echo_preview_url = true;
browser_func = "";
preview_options = {
mkit = [];
katex = [];
uml = [];
maid = [];
mkit = [ ];
katex = [ ];
uml = [ ];
maid = [ ];
disable_sync_scroll = false;
sync_scroll_type = "middle";
hide_yaml_meta = true;
sequence_diagrams = [];
flowchart_diagrams = [];
sequence_diagrams = [ ];
flowchart_diagrams = [ ];
content_editable = false;
disable_filename = false;
toc = [];
toc = [ ];
};
markdown_css = "/Users/username/markdown.css";
highlight_css.__raw = "vim.fn.expand('~/highlight.css')";
port = "8080";
page_title = "\$\{name}";
images_path = "";
filetypes = ["markdown"];
filetypes = [ "markdown" ];
theme = "dark";
combine_preview = false;
combine_preview_auto_refresh = true;

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
example = {
plugins.nvim-jdtls = {
enable = true;
@ -14,11 +15,11 @@
rootDir.__raw = "require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'})";
settings = {
java = {};
java = { };
};
initOptions = {
bundles = {};
bundles = { };
};
};
};

View file

@ -1,8 +1,7 @@
{pkgs, ...}:
{ pkgs, ... }:
# As of 2024-01-04, vimPlugins.openscad is broken on darwin
# TODO: re-enable this test when fixed
pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin)
{
pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
empty = {
plugins.openscad.enable = true;
};

View file

@ -12,7 +12,7 @@
enabled = true;
force_balance = false;
comment_char = ";";
string_delimiters = [''"''];
string_delimiters = [ ''"'' ];
lisp_vline_symbols = false;
lisp_block_comments = false;
guile_block_comments = false;

View file

@ -11,7 +11,7 @@
style = "hydrogen";
output_extension = "auto";
force_ft = null;
custom_language_formatting = {};
custom_language_formatting = { };
};
};
};

View file

@ -27,7 +27,7 @@
auto_format_pattern = "*keymap.c";
comment_preview = {
position = "top";
keymap_overrides = {};
keymap_overrides = { };
symbols = {
space = " ";
horz = "";

View file

@ -23,14 +23,38 @@
};
hoverActions = {
border = [
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
];
maxWidth = null;
maxHeight = null;

View file

@ -16,14 +16,38 @@
};
floatWinConfig = {
border = [
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
["" "FloatBorder"]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
[
""
"FloatBorder"
]
];
max_width = null;
max_height = null;
@ -127,10 +151,10 @@
enable = true;
server.settings = {
linkedProjects = ["foo/bar/hello"];
linkedProjects = [ "foo/bar/hello" ];
numThreads = 42;
joinLines.joinElseIf = true;
runnables.extraArgs = ["--release"];
runnables.extraArgs = [ "--release" ];
};
};
};

View file

@ -6,17 +6,23 @@
default = {
plugins.sniprun = {
enable = true;
selectedInterpreters = [];
replEnable = [];
replDisable = [];
interpreterOptions = {};
display = ["Classic" "VirtualTextOk"];
liveDisplay = ["VirtualTextOk"];
selectedInterpreters = [ ];
replEnable = [ ];
replDisable = [ ];
interpreterOptions = { };
display = [
"Classic"
"VirtualTextOk"
];
liveDisplay = [ "VirtualTextOk" ];
displayOptions = {
terminalWidth = 45;
notificationTimeout = 5;
};
showNoOutput = ["Classic" "TempFloatingWindow"];
showNoOutput = [
"Classic"
"TempFloatingWindow"
];
snipruncolors = {
SniprunVirtualTextOk = {
bg = "#66eeff";

View file

@ -1,6 +1,5 @@
{
empty = {
};
empty = { };
example = {
plugins.tagbar = {
@ -12,7 +11,10 @@
autofocus = false;
foldlevel = 2;
autoshowtag = true;
iconchars = ["" ""];
iconchars = [
""
""
];
wrap = true;
show_data_type = true;
show_visibility = true;

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
# texpresso is broken on darwin
plugins.texpresso.enable = !pkgs.stdenv.isDarwin;

View file

@ -41,7 +41,10 @@
"RainbowDelimiterViolet"
"RainbowDelimiterCyan"
];
blacklist = ["c" "cpp"];
blacklist = [
"c"
"cpp"
];
log = {
file.__raw = "vim.fn.stdpath('log') .. '/rainbow-delimiters.log'";
level = "warn";
@ -56,7 +59,10 @@
rainbow-delimiters = {
enable = true;
whitelist = ["c" "cpp"];
whitelist = [
"c"
"cpp"
];
};
};
};

View file

@ -14,7 +14,7 @@
select = {
enable = true;
disable = [];
disable = [ ];
lookahead = true;
keymaps = {
af = "@function.outer";
@ -34,7 +34,7 @@
};
swap = {
enable = true;
disable = [];
disable = [ ];
swapNext = {
"<leader>a" = "@parameter.inner";
};
@ -44,7 +44,7 @@
};
move = {
enable = true;
disable = [];
disable = [ ];
setJumps = true;
gotoNextStart = {
"]m" = "@function.outer";
@ -76,7 +76,7 @@
"<leader>df" = "@function.outer";
"<leader>dF" = "@class.outer";
};
floatingPreviewOpts = {};
floatingPreviewOpts = { };
};
};
};

View file

@ -19,7 +19,10 @@
languageRegister = {
cpp = "onelab";
python = ["foo" "bar"];
python = [
"foo"
"bar"
];
};
};
};

View file

@ -1,5 +1,7 @@
{
empty = {plugins.typescript-tools.enable = true;};
empty = {
plugins.typescript-tools.enable = true;
};
defaults = {
plugins.typescript-tools = {
@ -20,7 +22,10 @@
disableMemberCodeLens = true;
jsxCloseTag = {
enable = false;
filetypes = ["javascriptreact" "typescriptreact"];
filetypes = [
"javascriptreact"
"typescriptreact"
];
};
};
};

View file

@ -1,74 +1,72 @@
{pkgs, ...}: let
{ pkgs, ... }:
let
# CI failure: When trying to build `pkgs.texlive.combined.scheme-medium` on darwin, it fails with
# > sandbox-exec: pattern serialization length 75279 exceeds maximum (65535)
disableTexlivePackageOnDarwin =
pkgs.lib.optionalAttrs
pkgs.stdenv.isDarwin
{
texlivePackage = null;
};
in {
disableTexlivePackageOnDarwin = pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
texlivePackage = null;
};
in
{
empty = {
plugins.vimtex =
disableTexlivePackageOnDarwin
// {
enable = true;
};
plugins.vimtex = disableTexlivePackageOnDarwin // {
enable = true;
};
};
example = {
plugins.vimtex =
disableTexlivePackageOnDarwin
// {
enable = true;
plugins.vimtex = disableTexlivePackageOnDarwin // {
enable = true;
settings = {
compiler_enabled = false;
compiler_method = "arara";
quickfix_enabled = false;
view_enabled = false;
complete_enabled = false;
fold_enabled = true;
fold_manual = true;
fold_types = {
preamble.enabled = true;
sections.enabled = true;
parts.enabled = true;
comments.enabled = false;
envs.whitelist = ["frame" "abstract"];
env_options.enabled = false;
items.enabled = false;
markers.enabled = false;
cmd_single.enabled = false;
cmd_single_opt.enabled = false;
cmd_multi.enabled = false;
cmd_addplot.enabled = false;
};
indent_enabled = false;
matchparen_enabled = false;
toc_config = {
split_pos = "vert topleft";
split_width = 40;
mode = 1;
fold_enable = true;
fold_level_start = -1;
show_help = false;
resize = false;
show_numbers = true;
layer_status = {
label = 0;
include = 0;
todo = 0;
content = 1;
};
hide_line_numbers = false;
tocdepth = 2;
indent_levels = 1;
};
toc_show_preamble = false;
doc_confirm_single = false;
settings = {
compiler_enabled = false;
compiler_method = "arara";
quickfix_enabled = false;
view_enabled = false;
complete_enabled = false;
fold_enabled = true;
fold_manual = true;
fold_types = {
preamble.enabled = true;
sections.enabled = true;
parts.enabled = true;
comments.enabled = false;
envs.whitelist = [
"frame"
"abstract"
];
env_options.enabled = false;
items.enabled = false;
markers.enabled = false;
cmd_single.enabled = false;
cmd_single_opt.enabled = false;
cmd_multi.enabled = false;
cmd_addplot.enabled = false;
};
indent_enabled = false;
matchparen_enabled = false;
toc_config = {
split_pos = "vert topleft";
split_width = 40;
mode = 1;
fold_enable = true;
fold_level_start = -1;
show_help = false;
resize = false;
show_numbers = true;
layer_status = {
label = 0;
include = 0;
todo = 0;
content = 1;
};
hide_line_numbers = false;
tocdepth = 2;
indent_levels = 1;
};
toc_show_preamble = false;
doc_confirm_single = false;
};
};
};
}

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
plugins.lsp.enable = true;
};
@ -74,12 +75,12 @@
ruff-lsp = {
enable = true;
extraOptions = {
init_options.settings.args = ["--config=/path/to/config.toml"];
init_options.settings.args = [ "--config=/path/to/config.toml" ];
};
};
pylsp = {
enable = true;
filetypes = ["python"];
filetypes = [ "python" ];
autostart = false;
};
# rootDir
@ -95,116 +96,116 @@
all-servers =
pkgs.lib.optionalAttrs
# This fails on darwin
# See https://github.com/NixOS/nix/issues/4119
(!pkgs.stdenv.isDarwin)
{
plugins.lsp = {
enable = true;
# This fails on darwin
# See https://github.com/NixOS/nix/issues/4119
(!pkgs.stdenv.isDarwin)
{
plugins.lsp = {
enable = true;
servers = {
ansiblels.enable = true;
ast-grep.enable = true;
astro.enable = true;
bashls.enable = true;
beancount.enable = true;
biome.enable = true;
ccls.enable = true;
clangd.enable = true;
clojure-lsp.enable = true;
cmake.enable = true;
csharp-ls.enable = true;
cssls.enable = true;
dagger.enable = true;
dartls.enable = true;
denols.enable = true;
dhall-lsp-server.enable = true;
digestif.enable = true;
docker-compose-language-service.enable = true;
dockerls.enable = true;
efm.enable = true;
elmls.enable = true;
emmet_ls.enable = true;
eslint.enable = true;
elixirls.enable = true;
fortls.enable = true;
# pkgs.fsautocomplete only supports linux platforms
fsautocomplete.enable = pkgs.stdenv.isLinux;
futhark-lsp.enable = true;
gleam.enable = true;
gopls.enable = true;
golangci-lint-ls.enable = true;
graphql.enable = true;
helm-ls.enable = true;
hls.enable = true;
html.enable = true;
htmx.enable = true;
java-language-server.enable = true;
jsonls.enable = true;
julials.enable = true;
kotlin-language-server.enable = true;
leanls.enable = true;
lemminx.enable = true;
lexical.enable = true;
ltex.enable = true;
lua-ls.enable = true;
marksman.enable = true;
metals.enable = true;
nginx-language-server.enable = true;
nil_ls.enable = true;
nimls.enable = true;
nixd.enable = true;
nushell.enable = true;
ocamllsp.enable = true;
ols.enable =
# ols is not supported on aarch64-linux
(pkgs.stdenv.hostPlatform.system != "aarch64-linux")
# As of 2024-01-04, ols is broken on darwin
servers = {
ansiblels.enable = true;
ast-grep.enable = true;
astro.enable = true;
bashls.enable = true;
beancount.enable = true;
biome.enable = true;
ccls.enable = true;
clangd.enable = true;
clojure-lsp.enable = true;
cmake.enable = true;
csharp-ls.enable = true;
cssls.enable = true;
dagger.enable = true;
dartls.enable = true;
denols.enable = true;
dhall-lsp-server.enable = true;
digestif.enable = true;
docker-compose-language-service.enable = true;
dockerls.enable = true;
efm.enable = true;
elmls.enable = true;
emmet_ls.enable = true;
eslint.enable = true;
elixirls.enable = true;
fortls.enable = true;
# pkgs.fsautocomplete only supports linux platforms
fsautocomplete.enable = pkgs.stdenv.isLinux;
futhark-lsp.enable = true;
gleam.enable = true;
gopls.enable = true;
golangci-lint-ls.enable = true;
graphql.enable = true;
helm-ls.enable = true;
hls.enable = true;
html.enable = true;
htmx.enable = true;
java-language-server.enable = true;
jsonls.enable = true;
julials.enable = true;
kotlin-language-server.enable = true;
leanls.enable = true;
lemminx.enable = true;
lexical.enable = true;
ltex.enable = true;
lua-ls.enable = true;
marksman.enable = true;
metals.enable = true;
nginx-language-server.enable = true;
nil_ls.enable = true;
nimls.enable = true;
nixd.enable = true;
nushell.enable = true;
ocamllsp.enable = true;
ols.enable =
# ols is not supported on aarch64-linux
(pkgs.stdenv.hostPlatform.system != "aarch64-linux")
# As of 2024-01-04, ols is broken on darwin
# TODO: re-enable this test when fixed
&& !pkgs.stdenv.isDarwin;
# As of 2024-03-05, omnisharp-roslyn is broken on darwin
# TODO: re-enable this test when fixed
&& !pkgs.stdenv.isDarwin;
# As of 2024-03-05, omnisharp-roslyn is broken on darwin
# TODO: re-enable this test when fixed
omnisharp.enable = !pkgs.stdenv.isDarwin;
perlpls.enable = true;
pest_ls.enable = true;
prismals.enable = true;
prolog-ls.enable = true;
purescriptls.enable = true;
pylsp.enable = true;
pylyzer.enable = true;
pyright.enable = true;
ruff.enable = true;
ruff-lsp.enable = true;
rust-analyzer = {
enable = true;
installCargo = true;
installRustc = true;
omnisharp.enable = !pkgs.stdenv.isDarwin;
perlpls.enable = true;
pest_ls.enable = true;
prismals.enable = true;
prolog-ls.enable = true;
purescriptls.enable = true;
pylsp.enable = true;
pylyzer.enable = true;
pyright.enable = true;
ruff.enable = true;
ruff-lsp.enable = true;
rust-analyzer = {
enable = true;
installCargo = true;
installRustc = true;
};
slint-lsp.enable = true;
solargraph.enable = true;
# As of 2024-03-11, sourcekit-lsp is broken on aarch64
# TODO: re-enable this test when fixed
sourcekit.enable = !pkgs.stdenv.isAarch64;
sqls.enable = true;
svelte.enable = true;
tailwindcss.enable = true;
taplo.enable = true;
templ.enable = true;
terraformls.enable = true;
texlab.enable = true;
tinymist.enable = true;
tsserver.enable = true;
typos-lsp.enable = true;
typst-lsp.enable = true;
# As of 2024-04-03, pkgs.vala-language-server is broken on linux
# TODO: re-enable this test when fixed
vala-ls.enable = !pkgs.stdenv.isLinux;
vhdl-ls.enable = true;
vls.enable = true;
vuels.enable = true;
yamlls.enable = true;
zls.enable = true;
};
slint-lsp.enable = true;
solargraph.enable = true;
# As of 2024-03-11, sourcekit-lsp is broken on aarch64
# TODO: re-enable this test when fixed
sourcekit.enable = !pkgs.stdenv.isAarch64;
sqls.enable = true;
svelte.enable = true;
tailwindcss.enable = true;
taplo.enable = true;
templ.enable = true;
terraformls.enable = true;
texlab.enable = true;
tinymist.enable = true;
tsserver.enable = true;
typos-lsp.enable = true;
typst-lsp.enable = true;
# As of 2024-04-03, pkgs.vala-language-server is broken on linux
# TODO: re-enable this test when fixed
vala-ls.enable = !pkgs.stdenv.isLinux;
vhdl-ls.enable = true;
vls.enable = true;
vuels.enable = true;
yamlls.enable = true;
zls.enable = true;
};
};
};
}

View file

@ -8,11 +8,19 @@
enable = true;
formattersByFt = {
lua = ["stylua"];
python = ["isort" "black"];
javascript = [["prettierd" "prettier"]];
"*" = ["codespell"];
"_" = ["trimWhitespace"];
lua = [ "stylua" ];
python = [
"isort"
"black"
];
javascript = [
[
"prettierd"
"prettier"
]
];
"*" = [ "codespell" ];
"_" = [ "trimWhitespace" ];
};
formatOnSave = {
lspFallback = true;
@ -26,7 +34,10 @@
formatters = {
myFormatter = {
command = "myCmd";
args = ["--stdin-from-filename" "$FILENAME"];
args = [
"--stdin-from-filename"
"$FILENAME"
];
rangeArgs = ''
function(ctx)
return { "--line-start", ctx.range.start[1], "--line-end", ctx.range["end"][1] }
@ -42,12 +53,15 @@
return vim.fs.basename(ctx.filename) ~= "README.md"
end;
'';
exitCodes = [0 1];
exitCodes = [
0
1
];
env = {
VAR = "value";
};
"inherit" = true;
prependArgs = ["--use-tabs"];
prependArgs = [ "--use-tabs" ];
};
otherFormatter = ''
function(bufnr)
@ -65,11 +79,19 @@
enable = true;
formattersByFt = {
lua = ["stylua"];
python = ["isort" "black"];
javascript = [["prettierd" "prettier"]];
"*" = ["codespell"];
"_" = ["trimWhitespace"];
lua = [ "stylua" ];
python = [
"isort"
"black"
];
javascript = [
[
"prettierd"
"prettier"
]
];
"*" = [ "codespell" ];
"_" = [ "trimWhitespace" ];
};
formatOnSave = ''
@ -100,11 +122,19 @@
enable = true;
formattersByFt = {
lua = ["stylua"];
python = ["isort" "black"];
javascript = [["prettierd" "prettier"]];
"*" = ["codespell"];
"_" = ["trimWhitespace"];
lua = [ "stylua" ];
python = [
"isort"
"black"
];
javascript = [
[
"prettierd"
"prettier"
]
];
"*" = [ "codespell" ];
"_" = [ "trimWhitespace" ];
};
formatAfterSave = ''

View file

@ -1,111 +1,104 @@
{ efmls-options, pkgs, ... }:
{
efmls-options,
pkgs,
...
}: {
empty = {
plugins.efmls-configs.enable = true;
};
all = {
plugins.efmls-configs = let
options = efmls-options.options.plugins.efmls-configs;
# toolOptions is an attrsets of the form:
# { <lang> = { linter = tools; formatter = tools; }; }
# Where tools is the option type representing the valid tools for this language
toolOptions = (builtins.head options.setup.type.getSubModules).options;
plugins.efmls-configs =
let
options = efmls-options.options.plugins.efmls-configs;
# toolOptions is an attrsets of the form:
# { <lang> = { linter = tools; formatter = tools; }; }
# Where tools is the option type representing the valid tools for this language
toolOptions = (builtins.head options.setup.type.getSubModules).options;
brokenTools =
[
#Broken as of 16 of November 2023
"phpstan"
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
# As of 2024-01-04, cbfmt is broken on darwin
# TODO: re-enable this test when fixed
"cbfmt"
# As of 2024-01-04, texliveMedium is broken on darwin
# TODO: re-enable those tests when fixed
"chktex"
"latexindent"
]
++ pkgs.lib.optionals (pkgs.stdenv.hostPlatform.system == "x86_64-darwin") [
# As of 2024-01-04, dmd is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"dmd"
# As of 2024-01-04, luaformat is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"lua_format"
# As of 2024-03-27, pkgs.graalvm-ce (a dependency of pkgs.clj-kondo) is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"clj_kondo"
];
unpackaged =
[
"blade_formatter"
"cspell"
"cljstyle"
"dartanalyzer"
"debride"
"deno_fmt"
"fecs"
"fixjson"
"forge_fmt"
"gersemi"
"js_standard"
"pint"
"prettier_eslint"
"prettier_standard"
"redpen"
"reek"
"rome"
"slim_lint"
"solhint"
"sorbet"
"swiftformat"
"swiftlint"
"xo"
]
++ (
pkgs.lib.optionals
pkgs.stdenv.isDarwin
["clazy"]
)
++ (
pkgs.lib.optionals
pkgs.stdenv.isAarch64
brokenTools =
[
#Broken as of 16 of November 2023
"phpstan"
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
# As of 2024-01-04, cbfmt is broken on darwin
# TODO: re-enable this test when fixed
"cbfmt"
# As of 2024-01-04, texliveMedium is broken on darwin
# TODO: re-enable those tests when fixed
"chktex"
"latexindent"
]
++ pkgs.lib.optionals (pkgs.stdenv.hostPlatform.system == "x86_64-darwin") [
# As of 2024-01-04, dmd is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"dmd"
# As of 2024-01-04, luaformat is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"lua_format"
# As of 2024-03-27, pkgs.graalvm-ce (a dependency of pkgs.clj-kondo) is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"clj_kondo"
];
unpackaged =
[
"blade_formatter"
"cspell"
"cljstyle"
"dartanalyzer"
"debride"
"deno_fmt"
"fecs"
"fixjson"
"forge_fmt"
"gersemi"
"js_standard"
"pint"
"prettier_eslint"
"prettier_standard"
"redpen"
"reek"
"rome"
"slim_lint"
"solhint"
"sorbet"
"swiftformat"
"swiftlint"
"xo"
]
++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [ "clazy" ])
++ (pkgs.lib.optionals pkgs.stdenv.isAarch64 [
"dmd"
"smlfmt"
# As of 2024-03-11, swift-format is broken on aarch64
# TODO: re-enable this test when fixed
# "swift_format"
]
);
]);
# Fetch the valid enum members from the tool options
toolsFromOptions = opt: let
# tool options are a `either toolType (listOf toolType)`
# Look into `nestedTypes.left` to get a `toolType` option.
toolType = opt.type.nestedTypes.left;
# toolType is a `either (enum possible) helpers.nixvimTypes.rawLua
# Look into `nestedTypes.left` for the enum
possible = toolType.nestedTypes.left;
# possible is an enum, look into functor.payload for the variants
toolList = possible.functor.payload;
# Fetch the valid enum members from the tool options
toolsFromOptions =
opt:
let
# tool options are a `either toolType (listOf toolType)`
# Look into `nestedTypes.left` to get a `toolType` option.
toolType = opt.type.nestedTypes.left;
# toolType is a `either (enum possible) helpers.nixvimTypes.rawLua
# Look into `nestedTypes.left` for the enum
possible = toolType.nestedTypes.left;
# possible is an enum, look into functor.payload for the variants
toolList = possible.functor.payload;
in
builtins.filter (t: !builtins.elem t (brokenTools ++ unpackaged)) toolList;
in
builtins.filter (t: !builtins.elem t (brokenTools ++ unpackaged)) toolList;
in {
enable = true;
{
enable = true;
# Replace the { <lang> = { linter = tools; formatter = tools; } };
# With { <lang> = {
# linter = [<all valid linters for lang>];
# formatter = [<all valid formatters for lang>];
# };}
setup = builtins.mapAttrs (_: builtins.mapAttrs (_: toolsFromOptions)) toolOptions;
};
# Replace the { <lang> = { linter = tools; formatter = tools; } };
# With { <lang> = {
# linter = [<all valid linters for lang>];
# formatter = [<all valid formatters for lang>];
# };}
setup = builtins.mapAttrs (_: builtins.mapAttrs (_: toolsFromOptions)) toolOptions;
};
};
example = {
@ -128,12 +121,15 @@
# Only accepts known tools, or raw strings
html = {
formatter = ["prettier" {__raw = "djlint_fmt";}];
formatter = [
"prettier"
{ __raw = "djlint_fmt"; }
];
};
# Unknown filetype, accepts anything
htmldjango = {
formatter = [{__raw = "djlint_fmt";}];
formatter = [ { __raw = "djlint_fmt"; } ];
linter = "djlint";
};
};

View file

@ -19,7 +19,7 @@
return client and client.name or nil
end
'';
ignore = [];
ignore = [ ];
display = {
renderLimit = 16;
doneTtl = 3;
@ -89,7 +89,7 @@
};
logger = {
level = "warn";
floatPrecision = 0.01;
floatPrecision = 1.0e-2;
path.__raw = "string.format('%s/fidget.nvim.log', vim.fn.stdpath('cache'))";
};
};

View file

@ -13,9 +13,9 @@
retainInMemory = 1;
};
clang = {
extraArgs = [];
excludeArgs = ["-frounding-math"];
pathMappings = ["/remote/>/host/"];
extraArgs = [ ];
excludeArgs = [ "-frounding-math" ];
pathMappings = [ "/remote/>/host/" ];
resourceDir = "";
};
client = {
@ -36,8 +36,8 @@
threads = 0;
comments = 2;
multiVersion = 0;
multiVersionBlacklist = ["^/usr/include"];
initialBlacklist = ["."];
multiVersionBlacklist = [ "^/usr/include" ];
initialBlacklist = [ "." ];
onChange = false;
trackDependency = 2;
};

View file

@ -9,7 +9,10 @@
settings = {
eval = {
target = {
args = ["foo" "bar"];
args = [
"foo"
"bar"
];
installable = "";
};
depth = 0;
@ -21,7 +24,11 @@
options = {
enable = true;
target = {
args = ["yes" "no" "maybe"];
args = [
"yes"
"no"
"maybe"
];
installable = "";
};
};

View file

@ -16,20 +16,20 @@
flake8 = {
config = null;
enabled = true;
exclude = [];
exclude = [ ];
executable = "flake8";
filename = null;
hangClosing = null;
ignore = [];
ignore = [ ];
maxComplexity = null;
maxLineLength = null;
indentSize = null;
perFileIgnores = [];
perFileIgnores = [ ];
select = null;
};
jedi = {
auto_import_modules = ["numpy"];
extra_paths = [];
auto_import_modules = [ "numpy" ];
extra_paths = [ ];
environment = null;
};
jedi_completion = {
@ -40,7 +40,12 @@
fuzzy = false;
eager = false;
resolve_at_most = 25;
cache_for = ["pandas" "numpy" "tensorflow" "matplotlib"];
cache_for = [
"pandas"
"numpy"
"tensorflow"
"matplotlib"
];
};
jedi_definition = {
enabled = true;
@ -68,14 +73,14 @@
};
preload = {
enabled = true;
modules = [];
modules = [ ];
};
pycodestyle = {
enabled = true;
exclude = [];
filename = [];
exclude = [ ];
filename = [ ];
ropeFolder = null;
ignore = [];
ignore = [ ];
hangClosing = true;
maxLineLength = 80;
indentSize = 4;
@ -83,9 +88,9 @@
pydocstyle = {
enabled = false;
convention = null;
addIgnore = [];
addSelect = [];
ignore = [];
addIgnore = [ ];
addSelect = [ ];
ignore = [ ];
select = null;
match = "(?!test_).*\\.py";
matchDir = "[^\\.].*";
@ -95,7 +100,7 @@
};
pylint = {
enabled = true;
args = [];
args = [ ];
executable = null;
};
rope_autoimport = {
@ -115,9 +120,9 @@
live_mode = true;
dmypy = false;
strict = false;
overrides = [true];
overrides = [ true ];
dmypy_status_file = ".dmypy.json";
config_sub_paths = [];
config_sub_paths = [ ];
report_progress = false;
};
black = {
@ -135,18 +140,27 @@
ruff = {
enabled = true;
config = "/foo/bar/pyproject.toml";
exclude = ["foo" "bar"];
exclude = [
"foo"
"bar"
];
executable = "/foo/bar/ruff";
ignore = ["E42" "E720"];
extendIgnore = ["E12"];
ignore = [
"E42"
"E720"
];
extendIgnore = [ "E12" ];
lineLength = 123;
perFileIgnores = {
"__init__.py" = ["E402"];
"path/to/file.py" = ["E402"];
"__init__.py" = [ "E402" ];
"path/to/file.py" = [ "E402" ];
};
select = ["E01" "E56"];
extendSelect = ["E68"];
format = ["E90"];
select = [
"E01"
"E56"
];
extendSelect = [ "E68" ];
format = [ "E90" ];
};
};
rope = {

View file

@ -22,8 +22,11 @@
setup = {
gopls = {
exclude = ["gopls"];
order = ["gopls" "efm"];
exclude = [ "gopls" ];
order = [
"gopls"
"efm"
];
sync = true;
force = true;

View file

@ -15,8 +15,14 @@
collapse = "";
codeAction = "💡";
actionfix = "";
lines = ["" "" "" "" ""];
kind = {};
lines = [
""
""
""
""
""
];
kind = { };
impSign = "󰳛 ";
};
hover = {
@ -42,7 +48,10 @@
execAction = "o";
quit = "q";
toggleOrJump = "<CR>";
quitInShow = ["q" "<ESC>"];
quitInShow = [
"q"
"<ESC>"
];
};
};
codeAction = {
@ -76,7 +85,7 @@
default = "ref+imp";
layout = "float";
silent = false;
filter = {};
filter = { };
keys = {
shuttle = "[w";
toggleOrOpen = "o";

View file

@ -45,7 +45,7 @@
];
};
hiddenFalsePositives = {
"en-US" = [":/path/to/externalFile.txt"];
"en-US" = [ ":/path/to/externalFile.txt" ];
};
fields = {
maintitle = false;

View file

@ -29,7 +29,7 @@
enabled = false;
text = "💡";
hl = "LightBulbFloatWin";
win_opts = {};
win_opts = { };
};
status_text = {
enabled = false;
@ -47,12 +47,15 @@
autocmd = {
enabled = false;
updatetime = 200;
pattern = ["*"];
events = ["CursorHold" "CursorHoldI"];
pattern = [ "*" ];
events = [
"CursorHold"
"CursorHoldI"
];
};
ignore = {
clients = [];
ft = [];
clients = [ ];
ft = [ ];
actions_without_kind = false;
};
};

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
defaults = {
plugins.lsp = {
enable = true;

View file

@ -30,28 +30,42 @@
close = "q";
cancel = "<esc>";
refresh = "r";
jump = ["<cr>" "<tab>"];
open_split = ["<c-x>"];
open_vsplit = ["<c-v>"];
open_tab = ["<c-t>"];
jump_close = ["o"];
jump = [
"<cr>"
"<tab>"
];
open_split = [ "<c-x>" ];
open_vsplit = [ "<c-v>" ];
open_tab = [ "<c-t>" ];
jump_close = [ "o" ];
toggle_mode = "m";
toggle_preview = "P";
hover = "K";
preview = "p";
close_folds = ["zM" "zm"];
open_folds = ["zR" "zr"];
toggle_fold = ["zA" "za"];
close_folds = [
"zM"
"zm"
];
open_folds = [
"zR"
"zr"
];
toggle_fold = [
"zA"
"za"
];
previous = "k";
next = "j";
};
indent_lines = true;
win_config = {border = "single";};
win_config = {
border = "single";
};
auto_open = false;
auto_close = false;
auto_preview = true;
auto_fold = false;
auto_jump = ["lsp_definitions"];
auto_jump = [ "lsp_definitions" ];
signs = {
error = "";
warning = "";

View file

@ -10,7 +10,10 @@
keymaps = {
ai = "gw";
search = {
mode = ["n" "x"];
mode = [
"n"
"x"
];
options.desc = "Search diagnostic with Google";
};
};

View file

@ -11,7 +11,7 @@
settings = {
command = "flutter";
use_lsp = true;
custom_test_method_names = [];
custom_test_method_names = [ ];
};
};
};

View file

@ -46,7 +46,7 @@
plugins.neotest = {
enable = true;
adapters = {};
adapters = { };
settings = {
discovery = {
enabled = true;
@ -58,7 +58,7 @@
};
default_strategy = "integrated";
log_level = "warn";
consumers = {};
consumers = { };
icons = {
child_indent = "";
child_prefix = "";
@ -70,7 +70,16 @@
non_collapsible = "";
passed = "";
running = "";
running_animated = ["/" "|" "\\" "-" "/" "|" "\\" "-"];
running_animated = [
"/"
"|"
"\\"
"-"
"/"
"|"
"\\"
"-"
];
skipped = "";
unknown = "";
watching = "";
@ -99,7 +108,7 @@
border = "rounded";
max_height = 0.6;
max_width = 0.6;
options = {};
options = { };
};
strategies = {
integrated = {
@ -118,7 +127,10 @@
clear_target = "T";
debug = "d";
debug_marked = "D";
expand = ["<CR>" "<2-LeftMouse>"];
expand = [
"<CR>"
"<2-LeftMouse>"
];
expand_all = "e";
jumpto = "i";
mark = "m";

View file

@ -10,17 +10,17 @@
settings = {
dap = {
args = {justMyCode = false;};
args = {
justMyCode = false;
};
adapter_name = "netcoredbg";
};
custom_attributes = {
xunit = ["MyCustomFactAttribute"];
nunit = ["MyCustomTestAttribute"];
mstest = ["MyCustomTestMethodAttribute"];
xunit = [ "MyCustomFactAttribute" ];
nunit = [ "MyCustomTestAttribute" ];
mstest = [ "MyCustomTestMethodAttribute" ];
};
dotnet_additional_args = [
"--verbosity detailed"
];
dotnet_additional_args = [ "--verbosity detailed" ];
discovery_root = "project";
};
};

View file

@ -9,10 +9,13 @@
enable = true;
settings = {
mix_task = ["my_custom_task"];
extra_formatters = ["ExUnit.CLIFormatter" "ExUnitNotifier"];
extra_block_identifiers = ["test_with_mock"];
args = ["--trace"];
mix_task = [ "my_custom_task" ];
extra_formatters = [
"ExUnit.CLIFormatter"
"ExUnitNotifier"
];
extra_block_identifiers = [ "test_with_mock" ];
args = [ "--trace" ];
post_process_command.__raw = ''
function(cmd)
return vim.tbl_flatten({{"env", "FOO=bar"}, cmd})

View file

@ -11,7 +11,7 @@
settings = {
foundryCommand = "forge test";
foundryConfig = null;
env = {};
env = { };
cwd.__raw = ''
function ()
return lib.files.match_root_pattern("foundry.toml")

View file

@ -12,7 +12,10 @@
experimental = {
test_table = true;
};
args = ["-count=1" "-timeout=60s"];
args = [
"-count=1"
"-timeout=60s"
];
};
};
};

View file

@ -32,7 +32,9 @@
'';
history_size = 3;
parsing_throttle_ms = 10;
mappings = {configure = null;};
mappings = {
configure = null;
};
summary_view = {
header_length = 80;
shell_palette = {
@ -43,7 +45,7 @@
bold = "\27[1m";
};
};
extra_args = [];
extra_args = [ ];
filter_dir.__raw = ''
function(name, rel_path, root)
end

View file

@ -11,7 +11,9 @@
settings = {
jestCommand = "npm test --";
jestConfigFile = "custom.jest.config.ts";
env = {CI = true;};
env = {
CI = true;
};
cwd.__raw = ''
function(path)
return vim.fn.getcwd()

View file

@ -9,9 +9,16 @@
enable = true;
settings = {
ignore_dirs = ["vendor" "node_modules"];
root_ignore_files = ["phpunit-only.tests"];
test_file_suffixes = ["Test.php" "_test.php" "PestTest.php"];
ignore_dirs = [
"vendor"
"node_modules"
];
root_ignore_files = [ "phpunit-only.tests" ];
test_file_suffixes = [
"Test.php"
"_test.php"
"PestTest.php"
];
sail_enabled.__raw = "function() return false end";
sail_executable = "vendor/bin/sail";
pest_cmd = "vendor/bin/pest";

View file

@ -14,9 +14,18 @@
return "vendor/bin/phpunit"
end
'';
root_files = ["composer.json" "phpunit.xml" ".gitignore"];
filter_dirs = [".git" "node_modules"];
env = {XDEBUG_CONFIG = "idekey=neotest";};
root_files = [
"composer.json"
"phpunit.xml"
".gitignore"
];
filter_dirs = [
".git"
"node_modules"
];
env = {
XDEBUG_CONFIG = "idekey=neotest";
};
dap = null;
};
};

View file

@ -27,8 +27,8 @@
return vim.loop.cwd()
end
'';
env = {};
extra_args = [];
env = { };
extra_args = [ ];
filter_dir.__raw = ''
function(name, rel_path, root)
return name ~= "node_modules"

View file

@ -10,7 +10,10 @@
settings = {
dap.justMyCode = false;
args = ["--log-level" "DEBUG"];
args = [
"--log-level"
"DEBUG"
];
runner = "pytest";
python = ".venv/bin/python";
is_test_file.__raw = ''

View file

@ -18,8 +18,15 @@
})
end
'';
root_files = ["Gemfile" ".rspec" ".gitignore"];
filter_dirs = [".git" "node_modules"];
root_files = [
"Gemfile"
".rspec"
".gitignore"
];
filter_dirs = [
".git"
"node_modules"
];
transform_spec_path.__raw = ''
function(path)
return path

View file

@ -9,7 +9,7 @@
enable = true;
settings = {
args = ["--no-capture"];
args = [ "--no-capture" ];
dap_adapter = "lldb";
};
};

View file

@ -9,7 +9,7 @@
enable = true;
settings = {
args = ["--no-color"];
args = [ "--no-color" ];
runner = "bloop";
framework = "utest";
};

View file

@ -1,8 +1,5 @@
{ pkgs, nonels-sources-options, ... }:
{
pkgs,
nonels-sources-options,
...
}: {
# Empty configuration
empty = {
plugins.none-ls.enable = true;
@ -36,7 +33,7 @@
enableLspFormat = false;
border = null;
cmd = ["nvim"];
cmd = [ "nvim" ];
debounce = 250;
debug = false;
defaultTimeout = 5000;
@ -52,99 +49,85 @@
shouldAttach = null;
tempDir = null;
updateInInsert = false;
sources = let
options = nonels-sources-options.options.plugins.none-ls.sources;
sources =
let
options = nonels-sources-options.options.plugins.none-ls.sources;
unpackaged =
[
"blade_formatter"
"bsfmt"
"bslint"
"cljstyle"
"cueimports"
# As of 2024-03-22, pkgs.d2 is broken
# TODO: re-enable this test when fixed
"d2_fmt"
"erb_lint"
"findent"
"forge_fmt"
"gccdiag"
"gersemi"
"markuplint"
"mlint"
"nginx_beautifier"
"npm_groovy_lint"
"ocdc"
"packer"
"perlimports"
"pint"
"pretty_php"
"purs_tidy"
"pyink"
"reek"
"regal"
"remark"
"rescript"
"saltlint"
"solhint"
"spectral"
"sqlfmt"
"sql_formatter"
"styler"
"stylint"
"swiftformat"
"swiftlint"
"textidote"
"textlint"
"twigcs"
"vacuum"
"yamlfix"
]
++ (
pkgs.lib.optionals
(pkgs.stdenv.isDarwin && pkgs.stdenv.isx86_64)
unpackaged =
[
"blade_formatter"
"bsfmt"
"bslint"
"cljstyle"
"cueimports"
# As of 2024-03-22, pkgs.d2 is broken
# TODO: re-enable this test when fixed
"d2_fmt"
"erb_lint"
"findent"
"forge_fmt"
"gccdiag"
"gersemi"
"markuplint"
"mlint"
"nginx_beautifier"
"npm_groovy_lint"
"ocdc"
"packer"
"perlimports"
"pint"
"pretty_php"
"purs_tidy"
"pyink"
"reek"
"regal"
"remark"
"rescript"
"saltlint"
"solhint"
"spectral"
"sqlfmt"
"sql_formatter"
"styler"
"stylint"
"swiftformat"
"swiftlint"
"textidote"
"textlint"
"twigcs"
"vacuum"
"yamlfix"
]
++ (pkgs.lib.optionals (pkgs.stdenv.isDarwin && pkgs.stdenv.isx86_64) [
# As of 2024-03-27, pkgs.graalvm-ce (a dependency of pkgs.clj-kondo) is broken on x86_64-darwin
# TODO: re-enable this test when fixed
"clj_kondo"
"rubyfmt"
]
)
++ (
pkgs.lib.optionals
pkgs.stdenv.isDarwin
[
])
++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
"clazy"
"gdformat"
"gdlint"
"haml_lint"
"verilator"
"verible_verilog_format"
]
)
++ (
pkgs.lib.optionals
pkgs.stdenv.isAarch64
[
])
++ (pkgs.lib.optionals pkgs.stdenv.isAarch64 [
"semgrep"
"smlfmt"
# As of 2024-03-11, swift-format is broken on aarch64
# TODO: re-enable this test when fixed
"swift_format"
]
);
]);
sources = pkgs.lib.mapAttrs (_: sources:
pkgs.lib.mapAttrs (source: _:
{
enable = true;
}
// pkgs.lib.optionalAttrs (builtins.elem source unpackaged) {
package = null;
})
sources)
options;
in
sources = pkgs.lib.mapAttrs (
_: sources:
pkgs.lib.mapAttrs (
source: _:
{ enable = true; } // pkgs.lib.optionalAttrs (builtins.elem source unpackaged) { package = null; }
) sources
) options;
in
sources;
};
};

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
# Empty configuration
empty = {
plugins.lazy.enable = true;
@ -15,7 +16,12 @@
{
pkg = vim-dispatch;
optional = true;
cmd = ["Dispatch" "Make" "Focus" "Start"];
cmd = [
"Dispatch"
"Make"
"Focus"
"Start"
];
}
# Load on an autocommand event
@ -28,7 +34,19 @@
{
pkg = ale;
name = "w0rp/ale";
ft = ["sh" "zsh" "bash" "c" "cpp" "cmake" "html" "markdown" "racket" "vim" "tex"];
ft = [
"sh"
"zsh"
"bash"
"c"
"cpp"
"cmake"
"html"
"markdown"
"racket"
"vim"
"tex"
];
cmd = "ALEEnable";
}
@ -57,13 +75,15 @@
# Post-install/update hook with neovim command
{
pkg = nvim-treesitter;
opts = {ensure_installed = {};};
opts = {
ensure_installed = { };
};
}
# Use dependency and run lua function after load
{
pkg = gitsigns-nvim;
dependencies = [plenary-nvim];
dependencies = [ plenary-nvim ];
config = ''function() require("gitsigns").setup() end'';
}
];

View file

@ -20,7 +20,12 @@
{
name = "tpope/vim-dispatch";
opt = true;
cmd = ["Dispatch" "Make" "Focus" "Start"];
cmd = [
"Dispatch"
"Make"
"Focus"
"Start"
];
}
# Load on an autocommand event
@ -33,7 +38,19 @@
# Also run code after load (see the "config" key)
{
name = "w0rp/ale";
ft = ["sh" "zsh" "bash" "c" "cpp" "cmake" "html" "markdown" "racket" "vim" "tex"];
ft = [
"sh"
"zsh"
"bash"
"c"
"cpp"
"cmake"
"html"
"markdown"
"racket"
"vim"
"tex"
];
cmd = "ALEEnable";
config = "vim.cmd[[ALEEnable]]";
}
@ -93,13 +110,13 @@
name = "glepnir/galaxyline.nvim";
branch = "main";
config.__raw = ''function() require"statusline" end'';
requires = ["kyazdani42/nvim-web-devicons"];
requires = [ "kyazdani42/nvim-web-devicons" ];
}
# Use dependency and run lua function after load
{
name = "lewis6991/gitsigns.nvim";
requires = ["nvim-lua/plenary.nvim"];
requires = [ "nvim-lua/plenary.nvim" ];
config.__raw = ''function() require("gitsigns").setup() end'';
}

View file

@ -47,20 +47,53 @@
v = "V";
V = "V";
};
exclude_filenames = [];
exclude_filetypes = [];
exclude_filenames = [ ];
exclude_filetypes = [ ];
filetype_overrides = {
coc-explorer = ["CoC Explorer" ""];
defx = ["defx" "%{b:defx.paths[0]}"];
fugitive = ["fugitive" "%{airline#util#wrap(airline#extensions#branch#get_head(),80)}"];
gundo = ["Gundo" ""];
help = ["Help" "%f"];
minibufexpl = ["MiniBufExplorer" ""];
startify = ["startify" ""];
vim-plug = ["Plugins" ""];
vimfiler = ["vimfiler" "%{vimfiler#get_status_string()}"];
vimshell = ["vimshell" "%{vimshell#get_status_string()}"];
vaffle = ["Vaffle" "%{b:vaffle.dir}"];
coc-explorer = [
"CoC Explorer"
""
];
defx = [
"defx"
"%{b:defx.paths[0]}"
];
fugitive = [
"fugitive"
"%{airline#util#wrap(airline#extensions#branch#get_head(),80)}"
];
gundo = [
"Gundo"
""
];
help = [
"Help"
"%f"
];
minibufexpl = [
"MiniBufExplorer"
""
];
startify = [
"startify"
""
];
vim-plug = [
"Plugins"
""
];
vimfiler = [
"vimfiler"
"%{vimfiler#get_status_string()}"
];
vimshell = [
"vimshell"
"%{vimshell#get_status_string()}"
];
vaffle = [
"Vaffle"
"%{b:vaffle.dir}"
];
};
exclude_preview = false;
disable_statusline = false;

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
plugins.lualine.enable = true;
};
@ -25,22 +26,30 @@
winbar = 1000;
};
sections = {
lualine_a = ["mode"];
lualine_b = ["branch" "diff" "diagnostics"];
lualine_c = ["filename"];
lualine_x = ["encoding" "fileformat" "filetype"];
lualine_y = ["progress"];
lualine_z = ["location"];
lualine_a = [ "mode" ];
lualine_b = [
"branch"
"diff"
"diagnostics"
];
lualine_c = [ "filename" ];
lualine_x = [
"encoding"
"fileformat"
"filetype"
];
lualine_y = [ "progress" ];
lualine_z = [ "location" ];
};
inactiveSections = {
lualine_c = ["filename"];
lualine_x = ["location"];
lualine_c = [ "filename" ];
lualine_x = [ "location" ];
};
};
};
example = {
extraPlugins = [pkgs.vimPlugins.gruvbox-nvim];
extraPlugins = [ pkgs.vimPlugins.gruvbox-nvim ];
plugins.lualine = {
enable = true;
theme.__raw = ''
@ -50,9 +59,12 @@
return custom_gruvbox
end)()
'';
ignoreFocus = ["NvimTree" "neo-tree"];
ignoreFocus = [
"NvimTree"
"neo-tree"
];
disabledFiletypes = {
winbar = ["neo-tree"];
winbar = [ "neo-tree" ];
};
sections = {
lualine_c = [
@ -68,8 +80,8 @@
}
];
lualine_z = [
{name = "location";}
{name = "%L";} # total lines
{ name = "location"; }
{ name = "%L"; } # total lines
];
};
tabline = {
@ -99,7 +111,7 @@
}
];
};
extensions = ["nvim-tree"];
extensions = [ "nvim-tree" ];
};
};
}

View file

@ -38,7 +38,7 @@
show_scores = false;
show_unindexed = true;
workspace_scan_cmd = null;
workspaces = {};
workspaces = { };
};
};
};
@ -58,7 +58,10 @@
db_root = "/home/my_username/path/to/db_root";
show_scores = false;
show_unindexed = true;
ignore_patterns = ["*.git/*" "*/tmp/*"];
ignore_patterns = [
"*.git/*"
"*/tmp/*"
];
disable_devicons = false;
workspaces = {
conf = "/home/my_username/.config";

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
plugins.telescope = {
enable = true;

View file

@ -15,7 +15,11 @@
settings = {
use_delta = true;
use_custom_command = ["bash" "-c" "echo '$DIFF' | delta"];
use_custom_command = [
"bash"
"-c"
"echo '$DIFF' | delta"
];
side_by_side = true;
diff_context_lines = 8;
entry_format = "state #$ID";

View file

@ -38,7 +38,7 @@
]]
)
'';
headline_highlights = ["Headline"];
headline_highlights = [ "Headline" ];
bullet_highlights = [
"@text.title.1.marker.markdown"
"@text.title.2.marker.markdown"
@ -47,7 +47,12 @@
"@text.title.5.marker.markdown"
"@text.title.6.marker.markdown"
];
bullets = ["" "" "" ""];
bullets = [
""
""
""
""
];
codeblock_highlight = "CodeBlock";
dash_highlight = "Dash";
dash_string = "-";
@ -83,7 +88,7 @@
)
'';
treesitter_language = "markdown";
headline_highlights = ["Headline"];
headline_highlights = [ "Headline" ];
bullet_highlights = [
"@text.title.1.marker.markdown"
"@text.title.2.marker.markdown"
@ -92,7 +97,12 @@
"@text.title.5.marker.markdown"
"@text.title.6.marker.markdown"
];
bullets = ["" "" "" ""];
bullets = [
""
""
""
""
];
codeblock_highlight = "CodeBlock";
dash_highlight = "Dash";
dash_string = "-";
@ -132,7 +142,7 @@
]]
)
'';
headline_highlights = ["Headline"];
headline_highlights = [ "Headline" ];
bullet_highlights = [
"@neorg.headings.1.prefix"
"@neorg.headings.2.prefix"
@ -141,7 +151,12 @@
"@neorg.headings.5.prefix"
"@neorg.headings.6.prefix"
];
bullets = ["" "" "" ""];
bullets = [
""
""
""
""
];
codeblock_highlight = "CodeBlock";
dash_highlight = "Dash";
dash_string = "-";
@ -176,7 +191,7 @@
]]
)
'';
headline_highlights = ["Headline"];
headline_highlights = [ "Headline" ];
bullet_highlights = [
"@org.headline.level1"
"@org.headline.level2"
@ -187,7 +202,12 @@
"@org.headline.level7"
"@org.headline.level8"
];
bullets = ["" "" "" ""];
bullets = [
""
""
""
""
];
codeblock_highlight = "CodeBlock";
dash_highlight = "Dash";
dash_string = "-";

View file

@ -22,21 +22,24 @@
clearInInsertMode = false;
downloadRemoteImages = true;
onlyRenderImageAtCursor = false;
filetypes = ["markdown" "vimwiki"];
filetypes = [
"markdown"
"vimwiki"
];
};
neorg = {
enabled = true;
clearInInsertMode = false;
downloadRemoteImages = true;
onlyRenderImageAtCursor = false;
filetypes = ["norg"];
filetypes = [ "norg" ];
};
syslang = {
enabled = true;
clearInInsertMode = false;
downloadRemoteImages = true;
onlyRenderImageAtCursor = false;
filetypes = ["syslang"];
filetypes = [ "syslang" ];
};
};
maxWidth = null;
@ -44,10 +47,20 @@
maxWidthWindowPercentage = null;
maxHeightWindowPercentage = 50;
windowOverlapClearEnabled = false;
windowOverlapClearFtIgnore = ["cmp_menu" "cmp_docs" ""];
windowOverlapClearFtIgnore = [
"cmp_menu"
"cmp_docs"
""
];
editorOnlyRenderWhenFocused = false;
tmuxShowOnlyInActiveWindow = false;
hijackFilePatterns = ["*.png" "*.jpg" "*.jpeg" "*.gif" "*.webp"];
hijackFilePatterns = [
"*.png"
"*.jpg"
"*.jpeg"
"*.gif"
"*.webp"
];
};
};

View file

@ -9,7 +9,7 @@
cmdline = {
enabled = true;
view = "cmdline_popup";
opts = {};
opts = { };
format = {
cmdline = {
pattern = "^:";
@ -42,7 +42,7 @@
pattern = "^:%s*he?l?p?%s+";
icon = "";
};
input = {};
input = { };
};
};
messages = {
@ -56,11 +56,13 @@
popupmenu = {
enabled = true;
backend = "nui";
kindIcons = {};
kindIcons = { };
};
redirect = {
view = "popup";
filter = {event = "msg_show";};
filter = {
event = "msg_show";
};
};
commands = {
history = {
@ -71,12 +73,12 @@
};
filter = {
any = [
{event = "notify";}
{error = true;}
{warning = true;}
{ event = "notify"; }
{ error = true; }
{ warning = true; }
{
event = "msg_show";
kind = [""];
kind = [ "" ];
}
{
event = "lsp";
@ -93,12 +95,12 @@
};
filter = {
any = [
{event = "notify";}
{error = true;}
{warning = true;}
{ event = "notify"; }
{ error = true; }
{ warning = true; }
{
event = "msg_show";
kind = [""];
kind = [ "" ];
}
{
event = "lsp";
@ -106,7 +108,9 @@
}
];
};
filter_opts = {count = 1;};
filter_opts = {
count = 1;
};
};
errors = {
view = "popup";
@ -114,8 +118,12 @@
enter = true;
format = "details";
};
filter = {error = true;};
filter_opts = {reverse = true;};
filter = {
error = true;
};
filter_opts = {
reverse = true;
};
};
};
notify = {
@ -138,7 +146,7 @@
hover = {
enabled = true;
view = null;
opts = {};
opts = { };
};
signature = {
enabled = true;
@ -149,12 +157,12 @@
throttle = 50;
};
view = null;
opts = {};
opts = { };
};
message = {
enabled = true;
view = "notify";
opts = {};
opts = { };
};
documentation = {
view = "hover";
@ -162,7 +170,7 @@
lang = "markdown";
replace = true;
render = "plain";
format = ["{message}"];
format = [ "{message}" ];
win_options = {
concealcursor = "n";
conceallevel = 3;
@ -189,7 +197,11 @@
};
smartMove = {
enabled = true;
excludedFiletypes = ["cmp_menu" "cmp_docs" "notify"];
excludedFiletypes = [
"cmp_menu"
"cmp_docs"
"notify"
];
};
presets = {
bottom_search = false;
@ -199,10 +211,10 @@
lsp_doc_border = false;
};
throttle = 1000 / 30;
views = {};
routes = [];
status = {};
format = {};
views = { };
routes = [ ];
status = { };
format = { };
};
};
}

View file

@ -15,21 +15,21 @@
bt_ignore = null;
segments = [
{
text = ["%C"];
text = [ "%C" ];
click = "v:lua.ScFa";
}
{
text = ["%s"];
text = [ "%s" ];
click = "v:lua.ScSa";
}
{
text = [
{__raw = "require('statuscol.builtin').lnumfunc";}
{ __raw = "require('statuscol.builtin').lnumfunc"; }
" "
];
condition = [
true
{__raw = "require('statuscol.builtin').not_empty";}
{ __raw = "require('statuscol.builtin').not_empty"; }
];
click = "v:lua.ScLa";
}

View file

@ -35,8 +35,8 @@
"StatusLineNC"
"EndOfBuffer"
];
extra_groups = [];
exclude_groups = [];
extra_groups = [ ];
exclude_groups = [ ];
};
};
};

View file

@ -12,7 +12,10 @@
settings = {
dimming = {
alpha = 0.25;
color = ["Normal" "#ffffff"];
color = [
"Normal"
"#ffffff"
];
term_bg = "#000000";
inactive = false;
};
@ -24,7 +27,7 @@
"table"
"if_statement"
];
exclude = [];
exclude = [ ];
};
};
};

View file

@ -38,7 +38,10 @@
enable = true;
settings = {
char = ["#" "!"];
char = [
"#"
"!"
];
virtcolumn = "80,90,100";
highlight = "NonText";
};

View file

@ -12,7 +12,7 @@
backdrop = 0.95;
width = 120;
height = 1;
options = {};
options = { };
};
plugins = {
options = {

View file

@ -21,7 +21,10 @@
dim = 0.18;
cleaningInterval = 1250;
};
triggerEvents = ["InsertLeave" "TextChanged"];
triggerEvents = [
"InsertLeave"
"TextChanged"
];
condition = ''
function(buf)
local fn = vim.fn

View file

@ -11,10 +11,12 @@
autoSession = {
enabled = true;
enableLastSession = false;
rootDir = {__raw = "vim.fn.stdpath 'data' .. '/sessions/'";};
rootDir = {
__raw = "vim.fn.stdpath 'data' .. '/sessions/'";
};
createEnabled = true;
suppressDirs = null;
allowedDirs = [];
allowedDirs = [ ];
useGitBranch = true;
};
autoSave = {
@ -28,7 +30,7 @@
preCwdChangedHook = null;
postCwdChangedHook = null;
};
bypassSessionSaveFileTypes = [];
bypassSessionSaveFileTypes = [ ];
sessionLens = {
loadOnSetup = true;
themeConf = {

View file

@ -1,5 +1,7 @@
{
empty = {plugins.autoclose.enable = true;};
empty = {
plugins.autoclose.enable = true;
};
defaults = {
plugins.autoclose.enable = true;
@ -59,7 +61,7 @@
};
options = {
disabledFiletypes = ["text"];
disabledFiletypes = [ "text" ];
disableWhenTouch = false;
touchRegex = "[%w(%[{]";
pairSpaces = false;

View file

@ -7,7 +7,10 @@
plugins.better-escape = {
enable = true;
mapping = ["jj" "jk"];
mapping = [
"jj"
"jk"
];
timeout = 150;
clearEmptyLines = false;
keys = "<ESC>";

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
empty = {
plugins.clipboard-image = {
enable = true;
@ -20,7 +21,11 @@
};
filetypes = {
markdown = {
imgDir = ["src" "assets" "img"];
imgDir = [
"src"
"assets"
"img"
];
imgDirTxt = "/assets/img";
imgHandler = ''
function(img) -- New feature from PR #22

View file

@ -15,33 +15,49 @@
compile_command = {
c = {
exec = "gcc";
args = ["-Wall" "$(FNAME)" "-o" "$(FNOEXT)"];
args = [
"-Wall"
"$(FNAME)"
"-o"
"$(FNOEXT)"
];
};
cpp = {
exec = "g++";
args = ["-Wall" "$(FNAME)" "-o" "$(FNOEXT)"];
args = [
"-Wall"
"$(FNAME)"
"-o"
"$(FNOEXT)"
];
};
rust = {
exec = "rustc";
args = ["$(FNAME)"];
args = [ "$(FNAME)" ];
};
java = {
exec = "javac";
args = ["$(FNAME)"];
args = [ "$(FNAME)" ];
};
};
running_directory = ".";
run_command = {
c = {exec = "./$(FNOEXT)";};
cpp = {exec = "./$(FNOEXT)";};
rust = {exec = "./$(FNOEXT)";};
c = {
exec = "./$(FNOEXT)";
};
cpp = {
exec = "./$(FNOEXT)";
};
rust = {
exec = "./$(FNOEXT)";
};
python = {
exec = "python";
args = ["$(FNAME)"];
args = [ "$(FNAME)" ];
};
java = {
exec = "java";
args = ["$(FNOEXT)"];
args = [ "$(FNOEXT)" ];
};
};
multiple_testing = -1;

View file

@ -22,18 +22,34 @@
autoReloadTimeoutMs = 500;
commands = true;
highlights = {
covered = {fg = "#B7F071";};
uncovered = {fg = "#F07178";};
partial = {fg = "#AA71F0";};
summaryBorder = {link = "FloatBorder";};
summaryNormal = {link = "NormalFloat";};
summaryCursorLine = {link = "CursorLine";};
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";};
summaryPass = {
link = "CoverageCovered";
};
summaryFail = {
link = "CoverageUncovered";
};
};
loadCoverageCb = ''
function (ftype)
@ -56,8 +72,8 @@
};
signGroup = "coverage";
summary = {
widthPercentage = 0.70;
heightPercentage = 0.50;
widthPercentage = 0.7;
heightPercentage = 0.5;
borders = {
topleft = "";
topright = "";

Some files were not shown because too many files have changed in this diff Show more