nix-community.nixvim/modules
Gaetan Lepage ed30fd8588 modules/opts: fix code generation condition to prevent false positives
Currently, we generate the lua code as soon as the value of the option
is not an empty attrs.
However, a case where the attrs only contains `null` values
(`nord_colorscheme = null; nord_foo = null;}` would pass the `if`
condition, but the generated lua table would still be empty because
`toLua` filters out those values.

Hence, we should directly check if the attrs would be translated to an
empty lua table or not to decide whether we should generate the lua
snippet or not.
2024-11-20 16:30:09 +01:00
..
misc modules: move nixpkgs module to top-level modules 2024-09-27 09:30:12 +01:00
top-level modules/output: expose withPython3 2024-11-13 16:23:27 -03:00
autocmd.nix modules: cleanup with lib 2024-09-03 22:12:33 -05:00
clipboard.nix modules/clipboard: allow raw lua code in register option 2024-11-15 18:40:10 +00:00
colorscheme.nix modules: cleanup with lib 2024-09-03 22:12:33 -05:00
commands.nix lib: remove nixvimTypes alias 2024-09-27 08:31:07 +01:00
default.nix modules/performance: add an option to combine plugins to a single plugin pack 2024-07-24 16:50:50 +02:00
diagnostics.nix modules: cleanup with lib 2024-09-03 22:12:33 -05:00
doc.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
editorconfig.nix modules: cleanup with lib 2024-09-03 22:12:33 -05:00
files.nix lib: segregate and deprecate functions that need pkgs 2024-09-13 19:05:26 +01:00
filetype.nix lib: remove nixvimTypes alias 2024-09-27 08:31:07 +01:00
highlights.nix lib: remove nixvimTypes alias 2024-09-27 08:31:07 +01:00
keymaps.nix modules: cleanup with lib 2024-09-03 22:12:33 -05:00
lua-loader.nix modules/lua-loader: make enable option nullable 2024-07-21 17:11:50 +03:00
opts.nix modules/opts: fix code generation condition to prevent false positives 2024-11-20 16:30:09 +01:00
output.nix modules: cleanup with lib 2024-09-03 22:12:33 -05:00
performance.nix modules/performance: add ability to byte compile nvim runtime directory 2024-07-31 11:31:40 +00:00
plugins.nix plugins/by-name: remove pathExists check 2024-09-09 11:50:41 +01:00