mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-27 19:49:49 +01:00
highlight: implement suggestions
This commit is contained in:
parent
5e3a0dcdc3
commit
653e5d6a17
2 changed files with 9 additions and 9 deletions
|
@ -102,7 +102,7 @@
|
||||||
- `mini.trailspace`
|
- `mini.trailspace`
|
||||||
- `mini.visits`
|
- `mini.visits`
|
||||||
- Add [fzf-lua](https://github.com/ibhagwan/fzf-lua) in `vim.fzf-lua`
|
- Add [fzf-lua](https://github.com/ibhagwan/fzf-lua) in `vim.fzf-lua`
|
||||||
- Add options to define highlights under `vim.highlight`
|
- Add options to define highlights under [](#opt-vim.highlight)
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption literalExpression;
|
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 concatStringsSep;
|
inherit (lib.strings) hasPrefix concatLines;
|
||||||
inherit (lib.attrsets) mapAttrsToList;
|
inherit (lib.attrsets) mapAttrsToList;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
inherit (lib.nvim.dag) entryBetween;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
inherit (lib.nvim.types) hexColor;
|
inherit (lib.nvim.types) hexColor;
|
||||||
|
|
||||||
|
@ -15,18 +15,18 @@
|
||||||
mkOption {
|
mkOption {
|
||||||
type = nullOr hexColor;
|
type = nullOr hexColor;
|
||||||
default = null;
|
default = null;
|
||||||
|
example = "#ebdbb2";
|
||||||
description = ''
|
description = ''
|
||||||
The ${target} color to use. Written as color name or hex "#RRGGBB".
|
The ${target} color to use. Written as color name or hex "#RRGGBB".
|
||||||
'';
|
'';
|
||||||
example = "#ebdbb2";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mkBoolOption = name:
|
mkBoolOption = name:
|
||||||
mkOption {
|
mkOption {
|
||||||
type = nullOr bool;
|
type = nullOr bool;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''Whether to enable ${name}'';
|
|
||||||
example = false;
|
example = false;
|
||||||
|
description = "Whether to enable ${name}";
|
||||||
};
|
};
|
||||||
|
|
||||||
cfg = config.vim.highlight;
|
cfg = config.vim.highlight;
|
||||||
|
@ -98,14 +98,14 @@ in {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
default = {};
|
default = {};
|
||||||
description = "Custom highlight to apply";
|
example = ''
|
||||||
example = literalExpression ''
|
|
||||||
{
|
{
|
||||||
SignColumn = {
|
SignColumn = {
|
||||||
bg = "#282828";
|
bg = "#282828";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
description = "Custom highlights to apply";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -116,6 +116,6 @@ in {
|
||||||
)
|
)
|
||||||
cfg;
|
cfg;
|
||||||
in
|
in
|
||||||
entryAnywhere (concatStringsSep "\n" highlights);
|
entryBetween ["lazyConfigs" "pluginConfigs" "extraPluginConfigs"] ["theme"] (concatLines highlights);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue