Merge pull request #852 from Noah765/fix-highlight-color-type

highlight: fix color type
This commit is contained in:
raf 2025-04-23 19:38:00 +00:00 committed by GitHub
commit 2bee8b8a9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -340,6 +340,7 @@
- Add missing `flutter-tools.nvim` dependency `plenary.nvim`. - Add missing `flutter-tools.nvim` dependency `plenary.nvim`.
- Add necessary dependency of `flutter-tools.nvim` on lsp. - Add necessary dependency of `flutter-tools.nvim` on lsp.
- Add the `vim.languages.dart.flutter-tools.flutterPackage` option. - Add the `vim.languages.dart.flutter-tools.flutterPackage` option.
- Fix the type of the `highlight` color options.
[howird](https://github.com/howird): [howird](https://github.com/howird):

View file

@ -5,15 +5,14 @@
}: let }: let
inherit (lib.options) mkOption; inherit (lib.options) mkOption;
inherit (lib.types) nullOr attrsOf listOf submodule bool ints str enum; inherit (lib.types) nullOr attrsOf listOf submodule bool ints str enum;
inherit (lib.strings) hasPrefix concatLines; inherit (lib.strings) concatLines;
inherit (lib.attrsets) mapAttrsToList; inherit (lib.attrsets) mapAttrsToList;
inherit (lib.nvim.dag) entryBetween; inherit (lib.nvim.dag) entryBetween;
inherit (lib.nvim.lua) toLuaObject; inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.types) hexColor;
mkColorOption = target: mkColorOption = target:
mkOption { mkOption {
type = nullOr hexColor; type = nullOr str;
default = null; default = null;
example = "#ebdbb2"; example = "#ebdbb2";
description = '' description = ''