From 419edec01f3be200ac9870c1dabbf1d652d08d1a Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Sun, 13 Jul 2025 06:04:55 +0800 Subject: [PATCH] pkgs(nixvim): Use nixvim to precompile lua to byte code --- pkgs/nixvim/package.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/nixvim/package.nix b/pkgs/nixvim/package.nix index c01cf6b..1d29025 100644 --- a/pkgs/nixvim/package.nix +++ b/pkgs/nixvim/package.nix @@ -9,5 +9,21 @@ makeNixvimWithModule { imports = with lib; youthlic.loadImports' ./. (filter (name: !hasSuffix "/package.nix" (toString name))); enableMan = true; plugins.lualine.enable = true; + performance = { + # combinePlugins = { + # enable = true; + # standalonePlugins = []; + # }; + byteCompileLua = { + enable = true; + configs = true; + initLua = true; + luaLib = true; + nvimRuntime = true; + plugins = true; + }; + }; + wrapRc = true; + luaLoader.enable = true; }; }