vim-full: rename from vim_configurable

Avoids confusion: `vim-full`'s build-time features are configurable, but both
`vim` and `vim-full` are *customizable* (in the sense of user configuration).

+44 -22
+13 -4
doc/languages-frameworks/vim.section.md
··· 10 10 - Vim packages (*recommended*) 11 11 - vim-plug (vim only) 12 12 13 + Right now two Vim packages are available: `vim` which has most features that require extra 14 + dependencies disabled and `vim-full` which has them configurable and enabled by default. 15 + 16 + ::: {.note} 17 + `vim_configurable` is a deprecated alias for `vim-full` and refers to the fact that its 18 + build-time features are configurable. It has nothing to do with user configuration, 19 + and both the `vim` and `vim-full` packages can be customized as explained in the next section. 20 + ::: 21 + 13 22 ## Custom configuration {#custom-configuration} 14 23 15 24 Adding custom .vimrc lines can be done using the following code: 16 25 17 26 ```nix 18 - vim_configurable.customize { 27 + vim-full.customize { 19 28 # `name` optionally specifies the name of the executable and package 20 29 name = "vim-with-plugins"; 21 30 ··· 62 71 To store your plugins in Vim packages (the native Vim plugin manager, see `:help packages`) the following example can be used: 63 72 64 73 ```nix 65 - vim_configurable.customize { 74 + vim-full.customize { 66 75 vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; { 67 76 # loaded on launch 68 77 start = [ youcompleteme fugitive ]; ··· 101 110 ```nix 102 111 { 103 112 packageOverrides = pkgs: with pkgs; { 104 - myVim = vim_configurable.customize { 113 + myVim = vim-full.customize { 105 114 # `name` specifies the name of the executable and package 106 115 name = "vim-with-plugins"; 107 116 # add here code from the example section ··· 190 199 plugins the following example can be used: 191 200 192 201 ```nix 193 - vim_configurable.customize { 202 + vim-full.customize { 194 203 vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; { 195 204 # loaded on launch 196 205 plug.plugins = [ youcompleteme fugitive phpCompletion elm-vim ];
+11
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
··· 160 160 <itemizedlist> 161 161 <listitem> 162 162 <para> 163 + <literal>vim_configurable</literal> has been renamed to 164 + <literal>vim-full</literal> to avoid confusion: 165 + <literal>vim-full</literal>’s build-time features are 166 + configurable, but both <literal>vim</literal> and 167 + <literal>vim-full</literal> are 168 + <emphasis>customizable</emphasis> (in the sense of user 169 + configuration, like vimrc). 170 + </para> 171 + </listitem> 172 + <listitem> 173 + <para> 163 174 The module for the application firewall 164 175 <literal>opensnitch</literal> got the ability to configure 165 176 rules. Available as
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 49 49 50 50 <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> 51 51 52 + - `vim_configurable` has been renamed to `vim-full` to avoid confusion: `vim-full`'s build-time features are configurable, but both `vim` and `vim-full` are *customizable* (in the sense of user configuration, like vimrc). 53 + 52 54 - The module for the application firewall `opensnitch` got the ability to configure rules. Available as [services.opensnitch.rules](#opt-services.opensnitch.rules) 53 55 54 56 - `services.mastodon` gained a tootctl wrapped named `mastodon-tootctl` similar to `nextcloud-occ` which can be executed from any user and switches to the configured mastodon user with sudo and sources the environment variables.
+1 -1
pkgs/applications/editors/neovim/tests/default.nix
··· 1 1 # run tests by building `neovim.tests` 2 - { vimUtils, vim_configurable, writeText, neovim, vimPlugins 2 + { vimUtils, writeText, neovim, vimPlugins 3 3 , lib, fetchFromGitHub, neovimUtils, wrapNeovimUnstable 4 4 , neovim-unwrapped 5 5 , fetchFromGitLab
+2 -2
pkgs/applications/editors/spacevim/default.nix
··· 2 2 , git 3 3 , fzf 4 4 , makeWrapper 5 - , vim_configurable 5 + , vim-full 6 6 , vimPlugins 7 7 , fetchFromGitHub 8 8 , lib ··· 14 14 15 15 let 16 16 format = formats.toml { }; 17 - vim-customized = vim_configurable.customize { 17 + vim-customized = vim-full.customize { 18 18 name = "vim"; 19 19 # Not clear at the moment how to import plugins such that 20 20 # SpaceVim finds them and does not auto download them to
+1 -1
pkgs/applications/editors/vim/configurable.nix
··· 63 63 64 64 in stdenv.mkDerivation rec { 65 65 66 - pname = "vim_configurable"; 66 + pname = "vim-full"; 67 67 68 68 inherit (common) version postPatch hardeningDisable enableParallelBuilding meta; 69 69
+2 -2
pkgs/applications/editors/vim/macvim-configurable.nix
··· 6 6 makeCustomizable = macvim: macvim // { 7 7 # configure expects the same args as vimUtils.vimrcFile. 8 8 # This is the same as the value given to neovim.override { configure = … } 9 - # or the value of vim_configurable.customize { vimrcConfig = … } 9 + # or the value of vim-full.customize { vimrcConfig = … } 10 10 # 11 - # Note: Like neovim and vim_configurable, configuring macvim disables the 11 + # Note: Like neovim and vim-full, configuring macvim disables the 12 12 # sourcing of the user's vimrc. Use `customRC = "source $HOME/.vim/vimrc"` 13 13 # if you want to preserve that behavior. 14 14 configure = let
+2 -2
pkgs/applications/editors/vim/plugins/vim-utils.nix
··· 14 14 Install Vim like this eg using nixos option environment.systemPackages which will provide 15 15 vim-with-plugins in PATH: 16 16 17 - vim_configurable.customize { 17 + vim-full.customize { 18 18 name = "vim-with-plugins"; # optional 19 19 20 20 # add custom .vimrc lines like this: ··· 105 105 Thus the most simple usage would be: 106 106 107 107 vim_with_plugins = 108 - let vim = vim_configurable; 108 + let vim = vim-full; 109 109 inherit (vimUtil.override {inherit vim}) rtpPath addRtp buildVimPlugin vimHelpTags; 110 110 vimPlugins = [ 111 111 # the derivation list from the buffer created by nix#ExportPluginsForNix
+2 -2
pkgs/applications/editors/vim/vimacs.nix
··· 1 - { lib, stdenv, config, vim_configurable, macvim, vimPlugins 1 + { lib, stdenv, config, vim-full, macvim, vimPlugins 2 2 , useMacvim ? stdenv.isDarwin && (config.vimacs.macvim or true) 3 3 , vimacsExtraArgs ? "" }: 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "vimacs"; 7 7 version = lib.getVersion vimPackage; 8 - vimPackage = if useMacvim then macvim else vim_configurable; 8 + vimPackage = if useMacvim then macvim else vim-full; 9 9 10 10 buildInputs = [ vimPackage vimPlugins.vimacs ]; 11 11
+3 -3
pkgs/test/vim/default.nix
··· 1 - { vimUtils, vim_configurable, writeText, vimPlugins 1 + { vimUtils, vim-full, writeText, vimPlugins 2 2 , lib, fetchFromGitHub 3 3 , pkgs 4 4 }: ··· 14 14 ### vim tests 15 15 ################## 16 16 17 - test_vim_with_vim_nix_using_plug = vim_configurable.customize { 17 + test_vim_with_vim_nix_using_plug = vim-full.customize { 18 18 name = "vim-with-vim-addon-nix-using-plug"; 19 19 vimrcConfig.plug.plugins = with vimPlugins; [ vim-nix ]; 20 20 }; 21 21 22 - test_vim_with_vim_nix = vim_configurable.customize { 22 + test_vim_with_vim_nix = vim-full.customize { 23 23 name = "vim-with-vim-addon-nix"; 24 24 vimrcConfig.packages.myVimPackage.start = with vimPlugins; [ vim-nix ]; 25 25 };
+2
pkgs/top-level/aliases.nix
··· 1559 1559 vdirsyncerStable = vdirsyncer; # Added 2020-11-08, see https://github.com/NixOS/nixpkgs/issues/103026#issuecomment-723428168 1560 1560 venus = throw "venus has been removed from nixpkgs, as it's unmaintained"; # Added 2021-02-05 1561 1561 vgo2nix = throw "vgo2nix has been removed, because it was deprecated. Consider using gomod2nix instead"; # added 2022-08-24 1562 + vimHugeX = vim-full; # Added 2022-12-04 1563 + vim_configurable = vim-full; # Added 2022-12-04 1562 1564 vimbWrapper = throw "'vimbWrapper' has been renamed to/replaced by 'vimb'"; # Converted to throw 2022-02-22 1563 1565 virtinst = throw "virtinst has been removed, as it's included in virt-manager"; # Added 2021-07-21 1564 1566 virtuoso = throw "virtuoso has been removed, because it was unmaintained in nixpkgs"; # added 2021-12-15
+3 -5
pkgs/top-level/all-packages.nix
··· 27532 27532 assign-lb-ip = callPackage ../applications/networking/cluster/assign-lb-ip { }; 27533 27533 27534 27534 astroid = callPackage ../applications/networking/mailreaders/astroid { 27535 - vim = vim_configurable.override { features = "normal"; }; 27535 + vim = vim-full.override { features = "normal"; }; 27536 27536 }; 27537 27537 27538 27538 aucatctl = callPackage ../applications/audio/aucatctl { }; ··· 32738 32738 32739 32739 macvim = callPackage ../applications/editors/vim/macvim-configurable.nix { stdenv = clangStdenv; }; 32740 32740 32741 - vimHugeX = vim_configurable; 32742 - 32743 - vim_configurable = vimUtils.makeCustomizable (callPackage ../applications/editors/vim/configurable.nix { 32741 + vim-full = vimUtils.makeCustomizable (callPackage ../applications/editors/vim/configurable.nix { 32744 32742 inherit (darwin.apple_sdk.frameworks) CoreServices Cocoa Foundation CoreData; 32745 32743 inherit (darwin) libobjc; 32746 32744 }); 32747 32745 32748 - vim-darwin = (vim_configurable.override { 32746 + vim-darwin = (vim-full.override { 32749 32747 config = { 32750 32748 vim = { 32751 32749 gui = "none";