treewide: apply updated treefmt

This commit is contained in:
Gaetan Lepage 2026-01-23 10:09:11 +01:00 committed by Matt Sturgeon
parent a4522deb63
commit 4c09a1ac2d
16 changed files with 56 additions and 56 deletions

View file

@ -121,9 +121,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
If true will display arrow index in scrollbar at every update.
'';
overlap = lib.nixvim.defaultNullOpts.mkBool false '''';
overlap = lib.nixvim.defaultNullOpts.mkBool false "";
priority = lib.nixvim.defaultNullOpts.mkInt 1000 '''';
priority = lib.nixvim.defaultNullOpts.mkInt 1000 "";
};
zindex = lib.nixvim.defaultNullOpts.mkInt 50 ''

View file

@ -48,7 +48,7 @@ types.submodule {
'';
transform_items = defaultNullOpts.mkRaw' {
pluginDefault = ''function(_, items) return items end'';
pluginDefault = "function(_, items) return items end";
description = ''
Function to transform the items before they're returned.
'';

View file

@ -59,7 +59,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
preConfig = ''
local coq = require 'coq'
'';
setupWrappers = [ (s: ''coq.lsp_ensure_capabilities(${s})'') ];
setupWrappers = [ (s: "coq.lsp_ensure_capabilities(${s})") ];
};
};
}

View file

@ -61,7 +61,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
component =
defaultNullOpts.mkAttrsOf types.str
{
mode = ''%{lightline#mode()}'';
mode = "%{lightline#mode()}";
absolutepath = "%F";
relativepath = "%f";
filename = "%t";
@ -81,7 +81,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
line = "%l";
column = "%c";
close = "%999X X ";
winnr = ''%{winnr()}'';
winnr = "%{winnr()}";
}
''
Lightline component definitions. Uses 'statusline' syntax.
@ -151,7 +151,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
"filename"
"modified"
];
} ''A dictionary to store the tab components in each tabs.'';
} "A dictionary to store the tab components in each tabs.";
mode_map =
defaultNullOpts.mkAttrsOf types.str

View file

@ -128,7 +128,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
Whether the cursor should be placed before or after the substitution.
'';
keys = lib.nixvim.defaultNullOpts.mkStr "qwertyuiopzxcvbnmasdfghjkl" '''';
keys = lib.nixvim.defaultNullOpts.mkStr "qwertyuiopzxcvbnmasdfghjkl" "";
highlight = lib.nixvim.defaultNullOpts.mkStr "Search" ''
Which highlight group to use for the match.

View file

@ -77,7 +77,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
"q" = "Close";
};
}
''The task list displays all tasks that have been created. It shows the task status, name, and a summary of the task output.'';
"The task list displays all tasks that have been created. It shows the task status, name, and a summary of the task output.";
task_editor = {
bindings =

View file

@ -83,7 +83,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
set_compressed = false;
};
};
} ''Table of client configurations.'';
} "Table of client configurations.";
cookies = {
enable = defaultNullOpts.mkBool true ''

View file

@ -27,7 +27,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
cterm_color = defaultNullOpts.mkStr null "Cterm color of the icon.";
name = defaultNullOpts.mkStr null "Name to replace with icon.";
};
}) { } ''Custom overrides for icons.'';
}) { } "Custom overrides for icons.";
defaultIcon = mkNullOrOption (lib.types.submodule {
options = {
@ -35,7 +35,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
color = defaultNullOpts.mkStr null "Color of the icon.";
cterm_color = defaultNullOpts.mkStr null "Cterm color of the icon.";
};
}) ''Set the default icon when none is found.'';
}) "Set the default icon when none is found.";
};
extraConfig = cfg: {

View file

@ -548,35 +548,35 @@ in
with cfg.pythonPackage.pkgs;
{
pylsp_mypy = pylsp-mypy.overridePythonAttrs (old: {
postPatch = old.postPatch or '''' + ''
postPatch = old.postPatch or "" + ''
substituteInPlace setup.cfg \
--replace-fail "python-lsp-server >=1.7.0" ""
'';
});
isort = pyls-isort.overridePythonAttrs (old: {
postPatch = old.postPatch or '''' + ''
postPatch = old.postPatch or "" + ''
substituteInPlace setup.py \
--replace-fail 'install_requires=["python-lsp-server", "isort"],' 'install_requires=["isort"],'
'';
});
black = python-lsp-black.overridePythonAttrs (old: {
postPatch = old.postPatch or '''' + ''
postPatch = old.postPatch or "" + ''
substituteInPlace setup.cfg \
--replace-fail "python-lsp-server>=1.4.0" ""
'';
});
memestra = pyls-memestra.overridePythonAttrs (old: {
postPatch = old.postPatch or '''' + ''
postPatch = old.postPatch or "" + ''
sed -i '/python-lsp-server/d' requirements.txt
'';
});
rope = pylsp-rope.overridePythonAttrs (old: {
postPatch = old.postPatch or '''' + ''
postPatch = old.postPatch or "" + ''
sed -i '/python-lsp-server/d' setup.cfg
'';
});
ruff = python-lsp-ruff.overridePythonAttrs (old: {
postPatch = old.postPatch or '''' + ''
postPatch = old.postPatch or "" + ''
sed -i '/python-lsp-server/d' pyproject.toml
'';