diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix index a1a9b5e1135..597799c0268 100644 --- a/pkgs/applications/editors/vim/configurable.nix +++ b/pkgs/applications/editors/vim/configurable.nix @@ -46,8 +46,14 @@ composableDerivation {} { ; cfg = { - pythonSupport = true; - ftNixSupport = true; # add .nix filetype detection and minimal syntax highlighting support + pythonSupport = getConfig [ "vim" "python" ] true; + darwinSupport = getConfig [ "vim" "darwin" ] false; + nlsSupport = getConfig [ "vim" "nls" ] false; + tclSupport = getConfig [ "vim" "tcl" ] false; + multibyteSupport = getConfig [ "vim" "multibyte" ] false; + cscopeSupport = getConfig [ "vim" "cscope" ] false; + # add .nix filetype detection and minimal syntax highlighting support + ftNixSupport = getConfig [ "vim" "ftNix" ] true; }; #--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2fb30ad7d7e..813043027a1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6196,7 +6196,8 @@ let vimHugeX = vim_configurable; vim_configurable = import ../applications/editors/vim/configurable.nix { - inherit (pkgs) fetchurl stdenv ncurses pkgconfig gettext composableDerivation lib; + inherit (pkgs) fetchurl stdenv ncurses pkgconfig gettext composableDerivation lib + getConfig; inherit (pkgs.xlibs) libX11 libXext libSM libXpm libXt libXaw libXau libXmu libICE; inherit (pkgs.gtkLibs) glib gtk;