mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 12:23:20 +00:00
ui/noice: lazyload on DeferredUIEnter
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Icbff8af3a0fc527f399530718e2ef7cc6a6a6964
This commit is contained in:
parent
26edb440af
commit
a81aa0f691
2 changed files with 8 additions and 13 deletions
|
|
@ -6,8 +6,6 @@
|
|||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.lists) optionals;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
|
||||
cfg = config.vim.ui.noice;
|
||||
tscfg = config.vim.treesitter;
|
||||
|
|
@ -16,16 +14,15 @@
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [
|
||||
"noice-nvim"
|
||||
"nui-nvim"
|
||||
];
|
||||
|
||||
startPlugins = ["nui-nvim"];
|
||||
treesitter.grammars = optionals tscfg.addDefaultGrammars defaultGrammars;
|
||||
|
||||
pluginRC.noice-nvim = entryAnywhere ''
|
||||
require("noice").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
lazy.plugins.noice-nvim = {
|
||||
package = "noice-nvim";
|
||||
setupModule = "noice";
|
||||
event = ["DeferredUIEnter"];
|
||||
inherit (cfg) setupOpts;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue