mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-06 19:09:31 +00:00
ui/ui2: init
This commit is contained in:
parent
d3304af3d5
commit
96be4d23a9
5 changed files with 105 additions and 0 deletions
19
modules/plugins/ui/ui2/config.nix
Normal file
19
modules/plugins/ui/ui2/config.nix
Normal 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;})})
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue