mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
treewide: remove deprecated isNull
This commit is contained in:
parent
1f311240b5
commit
5592bcff64
2 changed files with 4 additions and 4 deletions
|
@ -246,10 +246,10 @@ in {
|
||||||
transparent = {
|
transparent = {
|
||||||
enabled = ${boolToString transparent},
|
enabled = ${boolToString transparent},
|
||||||
},
|
},
|
||||||
${optionalString (!isNull palette) ''palette = "${palette}",''}
|
${optionalString (palette != null) ''palette = "${palette}",''}
|
||||||
${optionalString (!isNull variant) ''variant = "${variant}",''}
|
${optionalString (variant != null) ''variant = "${variant}",''}
|
||||||
}
|
}
|
||||||
${optionalString (!isNull background) ''vim.opt.background = "${background}"''}
|
${optionalString (background != null) ''vim.opt.background = "${background}"''}
|
||||||
vim.cmd.colorscheme "solarized"
|
vim.cmd.colorscheme "solarized"
|
||||||
'';
|
'';
|
||||||
styles = let
|
styles = let
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
|
||||||
cfg = config.vim.binds.whichKey;
|
cfg = config.vim.binds.whichKey;
|
||||||
register = mapAttrsToList (n: v: lib.lists.optional (! isNull v) (mkLuaInline "{ '${n}', desc = '${v}' }")) cfg.register;
|
register = mapAttrsToList (n: v: lib.lists.optional (v != null) (mkLuaInline "{ '${n}', desc = '${v}' }")) cfg.register;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue