mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
misc: refactor imports, prefer adding helpers
to args rather than importing it
This commit is contained in:
parent
541b694873
commit
b6724702b4
160 changed files with 697 additions and 736 deletions
|
@ -1,15 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
helpers,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
} @ args:
|
||||
}:
|
||||
# TODO: This uses a lot of types.anything because noice.nvim types are quite complex.
|
||||
# It should be possible to map them to nix, but they would not map really well through
|
||||
# toLuaObject, we would maybe need some ad-hoc pre-processing functions.
|
||||
with lib; let
|
||||
helpers = import ../helpers.nix args;
|
||||
in {
|
||||
with lib; {
|
||||
options.plugins.noice =
|
||||
helpers.extraOptionsOptions
|
||||
// {
|
||||
|
@ -254,7 +253,7 @@ in {
|
|||
lsp_doc_border = false;
|
||||
}
|
||||
'' "
|
||||
you can enable a preset by setting it to true, or a table that will override the preset
|
||||
you can enable a preset by setting it to true, or a table that will override the preset
|
||||
config. you can also add custom presets that you can enable/disable with enabled=true
|
||||
";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue