Ha, you beat me to the post by like ten seconds!  I see you use the
same trick with sourcing ~/.vimrc in vim_configurable - now I am
wondering, does anybody out there use it the way it appears it's
intended to be used?

I keep wanting vim_configurable to produce a "normal" vim package
(including executables for gvim, xxd, vimdiff, etc) that has no
special behaviors other than having various plugins installed, but
there does not seem to be an easy way to accomplish that.

On Sun, Mar 19, 2017 at 3:25 PM, Vladimír Čunát <vcu...@gmail.com> wrote:
> On 03/19/2017 08:15 PM, Tilo Schwarz wrote:
>> I try to get YouCompleteMe running. [...]
>>
>> What would be the "nixos-correct" way to proceed?
>
> I'm using a wrapper that includes my settings, plugins, etc.  The code
> is something like this:
>
>     # defined as `vim` alias within a set in packageOverrides:
>     vim = vim_configurable.customize {
>       name = "vim";
>       vimrcConfig.customRC = builtins.readFile ./vimrc.vim + ''
>         " per-machine config may mostly remain empty
>         source ~/.vimrc
>       '';
>       vimrcConfig.vam.knownPlugins = vimPlugins; #
> pkgs/misc/vim-plugins/default.nix
>       vimrcConfig.vam.pluginDictionaries = [ { names = [
>         # see pkgs/misc/vim-plugins/vim-plugin-names
>         "vim-nix" "vim-addon-nix"
>         "Solarized"
>         "vim-pandoc-syntax"
>         "surround"
>         "vim-gitgutter" "fugitive"
>         "youcompleteme" # ...
>       ]; } ];
>     };
>
> --Vladimir
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to