wrapper/environment: add vim.appName to configure NVIM_APPNAME

This commit is contained in:
Gabriel Nützi 2026-06-13 12:39:28 +02:00
commit c0b6c55b19
No known key found for this signature in database
GPG key ID: 37A5F59C07097058
3 changed files with 50 additions and 21 deletions

View file

@ -4,10 +4,27 @@
...
}: let
inherit (lib.options) mkOption mkEnableOption literalMD;
inherit (lib.types) package bool str listOf attrsOf;
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;
@ -101,7 +118,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.