Skip to content

Commit 83334e5

Browse files
committed
chore: some typos, add toLuaObject'
1 parent 5aca400 commit 83334e5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ in {
3636
mkRawFn' = template true;
3737
mkRawFn = self.mkRawFn' "";
3838
inherit toKeymaps toKeymaps';
39+
toLuaObject' = x: if isNull x then "" else self.toLuaObject x;
3940
} // genToKeymaps');
4041
splices = arr:
4142
if arr == [] then []

modules/nixvim/keybindings.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ internal, lib, ... }:
22
let
3-
inherit (lib.nixvim) mkRawFn iKeymap' nKeymap' vKeymap' tKeymap';
3+
inherit (lib.nixvim) mkRaw mkRawFn iKeymap' nKeymap' vKeymap' tKeymap';
44
in
55
{ config, lib, ... }:
66
{

modules/nixvim/options/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ internal, lib, inputs, helpers ? lib.nixvim, ... }:
22
let
3-
inherit (helpers) mkRawFn toLuaObject nKeymap' ntKeymap';
3+
inherit (helpers) mkRawFn toLuaObject nKeymap' ntKeymap' toLuaObject';
44
in
55
{ pkgs, config, lib,... }:
66
let
@@ -114,13 +114,13 @@ in
114114
];
115115

116116
plugins.blink-cmp.luaConfig.content = lib.mkOverride 60 /* lua */ ''
117-
${toLuaObject config.plugins.blink-cmp.luaConfig.pre}
117+
${toLuaObject' config.plugins.blink-cmp.luaConfig.pre}
118118
--
119119
local default = ${toLuaObject config.plugins.blink-cmp.settings}
120120
local opts = vim.tbl_deep_extend("force", default, require "nvchad.blink.config")
121121
require("blink-cmp").setup(opts)
122122
--
123-
${toLuaObject config.plugins.blink-cmp.luaConfig.post}
123+
${toLuaObject' config.plugins.blink-cmp.luaConfig.post}
124124
'';
125125

126126
plugins.blink-cmp.lazyLoad.settings.before = mkRawFn ''

0 commit comments

Comments
 (0)