Re: [Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-04 Thread Ben Zhang
Thanks everyone for your input! I ended up using zimbatm’s method and made a python3 version of `vim_configurable` using `vimUtils.makeCustomizable`. Now it’s working great! My current `vim-config/default.nix`: ``` { pkgs }: let   my_plugins = import ./plugins.nix { inherit (pkgs) vimUtils fet

Re: [Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-04 Thread Rok Garbas
Maybe give neovim a try. It is can be configured very similarly and I can confirm that python3 and python support work. -- garbas > On 04 April 2017 at 21:42 Linus Heckemann > wrote:src/releng_slavehealth/releng_slavehealth/__init__.py > > > On 04/04/17 17:40, zimbatm wrote: > > Look into pk

Re: [Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-04 Thread Linus Heckemann
On 04/04/17 17:40, zimbatm wrote: > Look into pkgs/top-level/all-packages.nix. I would start by copying the > definition of vim_configurable from there and set the python argument. > > > On Tue, 4 Apr 2017, 14:08 Ben Zhang, > wrote: > > From the source code, it

Re: [Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-04 Thread zimbatm
Look into pkgs/top-level/all-packages.nix. I would start by copying the definition of vim_configurable from there and set the python argument. On Tue, 4 Apr 2017, 14:08 Ben Zhang, wrote: > From the source code, it doesn’t seem to accept a python argument ( > https://github.com/nicknovitski/nixpk

Re: [Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-04 Thread Ben Zhang
From the source code, it doesn’t seem to accept a python argument (https://github.com/nicknovitski/nixpkgs/blob/master/pkgs/misc/vim-plugins/vim-utils.nix#L291-L295). Is there another way to override `python` with `python3` (https://github.com/NixOS/nixpkgs/pull/8125#issuecomment-169471686)? Th

Re: [Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-04 Thread zimbatm
The "with" keyword binds the designated attrset pairs into scope. It doesn't override other called function variables though. Do you know if the customise function accepts a python argument as an input? On Tue, 4 Apr 2017, 06:04 Ben Zhang, wrote: > Hello everyone, > > I am following [this]( > h

[Nix-dev] Overriding python with python3 in vim_configurable.customize

2017-04-03 Thread Ben Zhang
Hello everyone, I am following [this](https://github.com/kamilchm/.nixpkgs/blob/master/vim-config/default.nix) template for configuring my custom vim with Nix. My `vim-config/default.nix` is as follows:     { pkgs }:     let       my_plugins = import ./plugins.nix { inherit (pkgs) vimUtils f