From f527abc19f6d973ac1ba378d567719f76a74b0cd Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 11 Jun 2026 15:54:37 +0300 Subject: [PATCH] wrapper: expose `appName` in `mnw` via `config.vim.appname` Signed-off-by: NotAShelf Change-Id: I993291328809699680c4765ea6313d996a6a6964 --- modules/wrapper/build/config.nix | 2 +- modules/wrapper/rc/options.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/wrapper/build/config.nix b/modules/wrapper/build/config.nix index ba25552c..66f9ba89 100644 --- a/modules/wrapper/build/config.nix +++ b/modules/wrapper/build/config.nix @@ -80,7 +80,7 @@ # Wrap the user's desired (unwrapped) Neovim package with arguments that'll be used to # generate a wrapped Neovim package. neovim-wrapped = inputs.mnw.lib.wrap {inherit pkgs;} { - appName = "nvf"; + appName = config.vim.appname; neovim = config.vim.package; initLua = config.vim.builtLuaConfigRC; luaFiles = config.vim.extraLuaFiles; diff --git a/modules/wrapper/rc/options.nix b/modules/wrapper/rc/options.nix index 3d99f044..9b9f3099 100644 --- a/modules/wrapper/rc/options.nix +++ b/modules/wrapper/rc/options.nix @@ -4,6 +4,19 @@ inherit (lib.nvim.types) dagOf; in { options.vim = { + appname = mkOption { + type = str; + default = "nvf"; + description = '' + Sets the {env}`NVIM_APPNAME` variable. + + In traditional Neovim setups, standard directories can be further configured + by the {env}`NVIM_APPNAME` environment variable. This variable controls the + sub-directory that Nvim will read from (and auto-create) in each of the base + directories. See `:help $NVIM_APPNAME` for more details. + ''; + }; + enableLuaLoader = mkOption { type = bool; default = false;