[Nix-dev] How to configure neovim?

Matthias Beyer mail at beyermatthias.de
Tue Nov 3 16:08:11 CET 2015


Oh. My. God.

This is so embarrassing.

I didn't install neovim in my user environment, but it was already in
my systemPackages array and the override didn't work because of this.

I found out because your example didn't work, so I just "grep"ed over
my .nix files and found out that there was neovim in two other files
definded... this is really really embarrassing...

Anyways, thanks for your help!

On 03-11-2015 13:25:17, Rok Garbas wrote:
> Quoting Matthias Beyer (2015-11-02 16:25:29)
> > I'm still having no solution here, so I'm sorry to reach out again. I
> > could send you my complete vim/neovim setup, if you want (6 nix files,
> > several .vim files).
> > 
> 
> Hi Matthias,
> 
> Try different approach. Build something small that works and then extend to
> your full blown vim configuration.
> 
> Basically this is working
> 
> save below as default.nix 
> 
>   { pkgs ? import <nixpkgs> {} }:
>   pkgs.neovim.override {
>     configure = {
>       customRC = ''
>         autocmd VimEnter * Calendar
>       '';
>       vam.pluginDictionaries = [
>         { names = [ "calendar-vim" ]; }
>       ];
>     };
>   }
> 
> 
> then run ``nix-build`` and run nvim with ``./result/bin/nvim``
> that should open you an calendar inside nvim which should be prove enough
> that neovim + custom configuration works.
> 
> there are few ways how you can use customized package nixos configuration.
> 
> --
> Rok Garbas - http://www.garbas.si



-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151103/b03e874a/attachment.bin 


More information about the nix-dev mailing list