feat: add disabled-diagnostics
arg
This commit is contained in:
parent
14aac92867
commit
e4a9896643
3 changed files with 67 additions and 1 deletions
|
@ -14,6 +14,7 @@ which takes an attrset with the following arguments:
|
||||||
- `plugins`: List of Neovim plugins and/or luarocks packages.
|
- `plugins`: List of Neovim plugins and/or luarocks packages.
|
||||||
Defaults to an empty list.
|
Defaults to an empty list.
|
||||||
- `lua-version`: Defaults to `"5.1"`.
|
- `lua-version`: Defaults to `"5.1"`.
|
||||||
|
- `disabled-diagnostics`: Defaults to an empty list..
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
|
64
flake.lock
Normal file
64
flake.lock
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1706830856,
|
||||||
|
"narHash": "sha256-a0NYyp+h9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "b253292d9c0a5ead9bc98c4e9a26c6312e27d69f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708475490,
|
||||||
|
"narHash": "sha256-g1v0TsWBQPX97ziznfJdWhgMyMGtoBFs102xSYO4syU=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "0e74ca98a74bc7270d28838369593635a5db3260",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"dir": "lib",
|
||||||
|
"lastModified": 1706550542,
|
||||||
|
"narHash": "sha256-UcsnCG6wx++23yeER4Hg18CXWbgNpqNXcHIo5/1Y+hc=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "97b17f32362e475016f942bbdfda4a4a72a8a652",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "lib",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
|
@ -43,6 +43,7 @@
|
||||||
neodev-types ? "stable",
|
neodev-types ? "stable",
|
||||||
plugins ? [],
|
plugins ? [],
|
||||||
lua-version ? "5.1",
|
lua-version ? "5.1",
|
||||||
|
disabled-diagnostics ? [],
|
||||||
}: let
|
}: let
|
||||||
partitions = builtins.partition (plugin:
|
partitions = builtins.partition (plugin:
|
||||||
builtins.hasAttr "vimPlugin" plugin
|
builtins.hasAttr "vimPlugin" plugin
|
||||||
|
@ -82,7 +83,7 @@
|
||||||
};
|
};
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
libraryFiles = "Disable";
|
libraryFiles = "Disable";
|
||||||
disable = [];
|
disable = disabled-diagnostics;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue