mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 02:34:15 -05:00
treewide: migrate away from removed nodePackages
This commit is contained in:
committed by
Gaétan Lepage
parent
c12d386771
commit
9336455b20
@@ -79,7 +79,7 @@ in
|
||||
clang-format = clang-tools;
|
||||
clang_format = clang-tools;
|
||||
cmake_format = cmake-format;
|
||||
css_beautify = nodePackages.js-beautify;
|
||||
css_beautify = js-beautify;
|
||||
cue_fmt = cue;
|
||||
dart_format = dart;
|
||||
deno_fmt = deno;
|
||||
@@ -98,10 +98,10 @@ in
|
||||
hcl = hclfmt;
|
||||
# FIXME: 2025-10-08 build failure (haskellPackages.hindent)
|
||||
hindent = states.broken haskellPackages.hindent;
|
||||
html_beautify = nodePackages.js-beautify;
|
||||
html_beautify = js-beautify;
|
||||
inherit (rubyPackages) htmlbeautifier;
|
||||
hurlfmt = hurl;
|
||||
js_beautify = nodePackages.js-beautify;
|
||||
js_beautify = js-beautify;
|
||||
jsonnetfmt = jsonnet;
|
||||
inherit (texlive.pkgs) latexindent;
|
||||
lua-format = luaformatter;
|
||||
|
||||
@@ -62,6 +62,7 @@ in
|
||||
"dmd"
|
||||
"dprint"
|
||||
"eslint"
|
||||
"eslint_d"
|
||||
"fish"
|
||||
"flawfinder"
|
||||
"fnlfmt"
|
||||
@@ -79,6 +80,7 @@ in
|
||||
"nixfmt"
|
||||
"php"
|
||||
"phpstan"
|
||||
"prettier"
|
||||
"prettypst"
|
||||
"proselint"
|
||||
"protolint"
|
||||
@@ -96,8 +98,10 @@ in
|
||||
"sqlfluff"
|
||||
"sqruff"
|
||||
"statix"
|
||||
"stylelint"
|
||||
"stylua"
|
||||
"taplo"
|
||||
"textlint"
|
||||
"typstyle"
|
||||
"uncrustify"
|
||||
"vale"
|
||||
@@ -112,12 +116,6 @@ in
|
||||
"mdformat"
|
||||
"vulture"
|
||||
];
|
||||
nodePackages = [
|
||||
"eslint_d"
|
||||
"prettier"
|
||||
"stylelint"
|
||||
"textlint"
|
||||
];
|
||||
phpPackages = [
|
||||
"phan"
|
||||
"psalm"
|
||||
|
||||
@@ -112,8 +112,6 @@ in
|
||||
]
|
||||
# Scoped packages
|
||||
// scoped {
|
||||
nodePackages = [
|
||||
];
|
||||
phpPackages = [
|
||||
"phpmd"
|
||||
"phpstan"
|
||||
@@ -206,10 +204,7 @@ in
|
||||
# FIXME: Can't have transition fallbacks anymore
|
||||
# TODO: replace after flake.lock update
|
||||
# prisma_format = "prisma";
|
||||
prisma_format = [
|
||||
"nodePackages"
|
||||
"prisma"
|
||||
];
|
||||
prisma_format = "prisma";
|
||||
ptop = "fpc";
|
||||
puppet_lint = "puppet-lint";
|
||||
qmlformat = [
|
||||
|
||||
@@ -23,17 +23,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||
extraOptions = {
|
||||
enableTelescope = lib.mkEnableOption "the `package_info` telescope picker.";
|
||||
|
||||
packageManagerPackage =
|
||||
lib.mkPackageOption pkgs
|
||||
[
|
||||
"nodePackages"
|
||||
"npm"
|
||||
]
|
||||
{
|
||||
nullable = true;
|
||||
default = null;
|
||||
example = "pkgs.nodePackages.npm";
|
||||
};
|
||||
packageManagerPackage = lib.mkPackageOption pkgs [ "nodejs" ] {
|
||||
nullable = true;
|
||||
default = null;
|
||||
example = "pkgs.nodejs";
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
|
||||
@@ -45,9 +45,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||
|
||||
node_executable = defaultNullOpts.mkStr "node" ''
|
||||
Path to the node executable.
|
||||
|
||||
If you set `nodePackage` to a non-null package, this option will automatically default to its
|
||||
path.
|
||||
'';
|
||||
|
||||
skip_node_check = defaultNullOpts.mkBool false ''
|
||||
|
||||
Reference in New Issue
Block a user