wrapper/environment: add vim.appName corresponding to NVIM_APPNAME

This commit is contained in:
Gabriel Nützi 2026-06-13 13:14:15 +02:00
commit 2b3b0d0c46
No known key found for this signature in database
GPG key ID: 37A5F59C07097058
2 changed files with 72 additions and 39 deletions

View file

@ -3,11 +3,34 @@
lib,
...
}: let
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
inherit (lib.types) package bool str listOf attrsOf;
inherit
(lib.options)
mkOption
mkEnableOption
literalMD
literalExpression
;
inherit
(lib.types)
package
bool
str
listOf
attrsOf
;
inherit (lib.nvim.types) pluginsOpt extraPluginType;
in {
options.vim = {
appName = mkOption {
type = str;
default = "nvf";
description = ''
The neovim application name corresponding to the
`NVIM_APPNAME`
[environment variable](https://neovim.io/doc/user/starting/#_nvim_appname).
'';
};
package = mkOption {
type = package;
default = pkgs.neovim-unwrapped;
@ -99,7 +122,7 @@ in {
extraPackages = mkOption {
type = listOf package;
default = [];
example = ''[pkgs.fzf pkgs.ripgrep]'';
example = "[pkgs.fzf pkgs.ripgrep]";
description = ''
List of additional packages to make available to the Neovim
wrapper.