Re: How do I install neovim plugins?

2020-09-19 Thread Yasuaki Kudo
Hi John,

Ah I see let me try this as well!

I need to do some gardening right now but will try after that 

Yasu

> On Sep 20, 2020, at 09:17, John Soo  wrote:
> 
> Hello Yasu,
> 
> I use a manifest file and guix-package -m to do declarative installations. 
> 
> I find it strikes a nice balance between having to rebuild for every 
> configuration change and making my environment declarative. 
> 
> Good luck!
> 
> - John



Re: How do I install neovim plugins?

2020-09-19 Thread Yasuaki Kudo
Well perhaps I will try your home manager and we can even improve it 

I want to spend some time learning Guix - I think highly 
composable/customizable software is what many organizations desire and is the 
area that is underserved - because many software vendors are not interested, 
half-interested with ulterior motives, or outright against it 

GNU Guix seems to address both philosophical and technological shortcomings of 
our society. 

> On Sep 20, 2020, at 08:41, Julien Lepiller  wrote:
> 
> 
> 
> Le 19 septembre 2020 19:18:14 GMT-04:00, y...@yasuaki.com a écrit :
>> Hi Julien,
>> 
>> Thank you for the pointer, here is what I did to make it work:
>> 
>>   set runtimepath+=/home/yasu/.guix-profile/share/vim/vimfiles
>> 
>> The plugin and neovim were installed as below:
>> 
>> guix package --install=vim-airline
>> guix package --install=nvim
> 
> Great! Glad I could help :)
> 
>> 
>> But this seems rather "imperative" and is not what I expected to do,
>> after spending many weeks trying home-manager from NixOS :-)
>> 
>> excerpt from .config/nixpkgs/home.nix
>> ...
>>  programs.neovim = {
>>enable = true;
>>plugins = [
>>  pkgs.vimPlugins.vim-airline
>>  pkgs.vimPlugins.vim-nix
>>];
>> ...
>> 
>> In the Nix world, I think people were not seeing much point of:
>> 
>>nix-env -i
>> 
>> which seems to be their equivalent of:
>> 
>>   guix package --install=
>> 
>> As an alternative, 'home-manger' seemed popular.
>> 
>> Would you say the same for Guix as well?
> 
> I agree, this is very imperative, but since we don't have an equivalent of 
> the home manager (except for my channel which is not very popular because I 
> don't recommend it for everyday use), this the kind of thing we usually do.
> 
> Actually, the most popular in guix is rather to set some *PATH environment 
> variable, sometimes even patching the software to honor them. But we don't 
> have any for neovim.
> 
> The equivalent of your home.nix example would be:
> 
> (user-home
>  neovim-home-type
>  (neovim-confiquration
>(plugins (list neovim-airline neovim-nix
> 
> (Assuming we actually have these packages)
> 
> The guix home manager follows the spirit of functionnal management closer 
> than the nix home manager, because itqmakes your entire home a symlink to a 
> store path, whereas nix home only overwrites some files that can later be 
> modified imperatively (by you or a software). That makes it harder to use and 
> breaks many software, but is much more satisfying :)
> 
>> 
>> -Yasu
>> 
>> 
>> 
>>> On 19.09.2020 23:40, Julien Lepiller wrote:
>>> If you install plugins in your profile, you can add:
>>> 
>>> set runpath+=/home/user/.guix-profile/share/nvim/site
>>> 
>>> In your .config/nvem/init.vim
>>> 
>>> I also have a guix-home-manager at
>>> https://framagit.org/tyreunom/guix-home-manager but it's more
>>> involved.
>>> 
>>> Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo
>>>  a écrit :
>>> 
 I see some vim plugin packages for guix but I have no idea how I
 enable them in the neovim (nvim) that I installed in Guix.
 
 In NixOS I just used "home manager" and modified some existing
 template I found to add more plugins.



Re: How do I install neovim plugins?

2020-09-19 Thread John Soo
Hello Yasu,

I use a manifest file and guix-package -m to do declarative installations. 

I find it strikes a nice balance between having to rebuild for every 
configuration change and making my environment declarative. 

Good luck!

- John


Re: How do I install neovim plugins?

2020-09-19 Thread Julien Lepiller



Le 19 septembre 2020 19:18:14 GMT-04:00, y...@yasuaki.com a écrit :
>Hi Julien,
>
>Thank you for the pointer, here is what I did to make it work:
>
>set runtimepath+=/home/yasu/.guix-profile/share/vim/vimfiles
>
>The plugin and neovim were installed as below:
>
>guix package --install=vim-airline
>guix package --install=nvim

Great! Glad I could help :)

>
>But this seems rather "imperative" and is not what I expected to do,
>after spending many weeks trying home-manager from NixOS :-)
>
>excerpt from .config/nixpkgs/home.nix
>...
>   programs.neovim = {
> enable = true;
> plugins = [
>   pkgs.vimPlugins.vim-airline
>   pkgs.vimPlugins.vim-nix
> ];
>...
>
>In the Nix world, I think people were not seeing much point of:
>
> nix-env -i
>
>which seems to be their equivalent of:
>
>guix package --install=
>
>As an alternative, 'home-manger' seemed popular.
>
>Would you say the same for Guix as well?

I agree, this is very imperative, but since we don't have an equivalent of the 
home manager (except for my channel which is not very popular because I don't 
recommend it for everyday use), this the kind of thing we usually do.

Actually, the most popular in guix is rather to set some *PATH environment 
variable, sometimes even patching the software to honor them. But we don't have 
any for neovim.

The equivalent of your home.nix example would be:

(user-home
  neovim-home-type
  (neovim-confiquration
(plugins (list neovim-airline neovim-nix

(Assuming we actually have these packages)

The guix home manager follows the spirit of functionnal management closer than 
the nix home manager, because itqmakes your entire home a symlink to a store 
path, whereas nix home only overwrites some files that can later be modified 
imperatively (by you or a software). That makes it harder to use and breaks 
many software, but is much more satisfying :)

>
>-Yasu
>
>
>
>On 19.09.2020 23:40, Julien Lepiller wrote:
>> If you install plugins in your profile, you can add:
>> 
>> set runpath+=/home/user/.guix-profile/share/nvim/site
>> 
>> In your .config/nvem/init.vim
>> 
>> I also have a guix-home-manager at
>> https://framagit.org/tyreunom/guix-home-manager but it's more
>> involved.
>> 
>> Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo
>>  a écrit :
>> 
>>> I see some vim plugin packages for guix but I have no idea how I
>>> enable them in the neovim (nvim) that I installed in Guix.
>>> 
>>> In NixOS I just used "home manager" and modified some existing
>>> template I found to add more plugins.



Re: How do I install neovim plugins?

2020-09-19 Thread yasu

Hi Julien,

Thank you for the pointer, here is what I did to make it work:

   set runtimepath+=/home/yasu/.guix-profile/share/vim/vimfiles

The plugin and neovim were installed as below:

guix package --install=vim-airline
guix package --install=nvim

But this seems rather "imperative" and is not what I expected to do,
after spending many weeks trying home-manager from NixOS :-)

excerpt from .config/nixpkgs/home.nix
...
  programs.neovim = {
enable = true;
plugins = [
  pkgs.vimPlugins.vim-airline
  pkgs.vimPlugins.vim-nix
];
...

In the Nix world, I think people were not seeing much point of:

nix-env -i

which seems to be their equivalent of:

   guix package --install=

As an alternative, 'home-manger' seemed popular.

Would you say the same for Guix as well?

-Yasu



On 19.09.2020 23:40, Julien Lepiller wrote:

If you install plugins in your profile, you can add:

set runpath+=/home/user/.guix-profile/share/nvim/site

In your .config/nvem/init.vim

I also have a guix-home-manager at
https://framagit.org/tyreunom/guix-home-manager but it's more
involved.

Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo
 a écrit :


I see some vim plugin packages for guix but I have no idea how I
enable them in the neovim (nvim) that I installed in Guix.

In NixOS I just used "home manager" and modified some existing
template I found to add more plugins.




Re: How do I install neovim plugins?

2020-09-19 Thread Julien Lepiller
If you install plugins in your profile, you can add:

set runpath+=/home/user/.guix-profile/share/nvim/site

In your .config/nvem/init.vim

I also have a guix-home-manager at 
https://framagit.org/tyreunom/guix-home-manager but it's more involved.


Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo  a 
écrit :
>I see some vim plugin packages for guix but I have no idea how I enable
>them in the neovim (nvim) that I installed in Guix.
>
>In NixOS I just used "home manager" and modified some existing template
>I found to add more plugins.


How do I install neovim plugins?

2020-09-19 Thread Yasuaki Kudo
I see some vim plugin packages for guix but I have no idea how I enable them in 
the neovim (nvim) that I installed in Guix.

In NixOS I just used "home manager" and modified some existing template I found 
to add more plugins.