mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-25 22:04:39 +00:00
wrapper/environment: add vim.appName to configure NVIM_APPNAME
This commit is contained in:
parent
0c9b4d0d80
commit
c0b6c55b19
3 changed files with 50 additions and 21 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue