ui/ui2: init

This commit is contained in:
dish 2026-04-05 17:14:51 -04:00
commit 96be4d23a9
5 changed files with 105 additions and 0 deletions

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.ui.ui2;
in {
config = mkIf cfg.enable {
vim = {
luaConfigRC.ui2 = entryAnywhere ''
require('vim._core.ui2').enable(${toLuaObject (cfg.setupOpts // {enable = lib.mkForce true;})})
'';
};
};
}