diff --git a/README.md b/README.md index bab7b3b..bf472d5 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ which takes an attrset with the following arguments: - `plugins`: List of Neovim plugins and/or luarocks packages. Defaults to an empty list. - `lua-version`: Defaults to `"5.1"`. +- `disabled-diagnostics`: Defaults to an empty list.. Example: diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d8f782a --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix index 3b98773..710c7c1 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,7 @@ neodev-types ? "stable", plugins ? [], lua-version ? "5.1", + disabled-diagnostics ? [], }: let partitions = builtins.partition (plugin: builtins.hasAttr "vimPlugin" plugin @@ -82,7 +83,7 @@ }; diagnostics = { libraryFiles = "Disable"; - disable = []; + disable = disabled-diagnostics; }; }; };