* How do I install neovim plugins? @ 2020-09-19 14:04 Yasuaki Kudo 2020-09-19 14:40 ` Julien Lepiller 0 siblings, 1 reply; 7+ messages in thread From: Yasuaki Kudo @ 2020-09-19 14:04 UTC (permalink / raw) To: help-guix 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How do I install neovim plugins? 2020-09-19 14:04 How do I install neovim plugins? Yasuaki Kudo @ 2020-09-19 14:40 ` Julien Lepiller 2020-09-19 23:18 ` yasu 0 siblings, 1 reply; 7+ messages in thread From: Julien Lepiller @ 2020-09-19 14:40 UTC (permalink / raw) To: help-guix, Yasuaki Kudo 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 <yasu@yasuaki.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How do I install neovim plugins? 2020-09-19 14:40 ` Julien Lepiller @ 2020-09-19 23:18 ` yasu 2020-09-19 23:41 ` Julien Lepiller 0 siblings, 1 reply; 7+ messages in thread From: yasu @ 2020-09-19 23:18 UTC (permalink / raw) To: Julien Lepiller; +Cc: help-guix 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 > <yasu@yasuaki.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How do I install neovim plugins? 2020-09-19 23:18 ` yasu @ 2020-09-19 23:41 ` Julien Lepiller 2020-09-20 0:17 ` John Soo 2020-09-20 0:19 ` Yasuaki Kudo 0 siblings, 2 replies; 7+ messages in thread From: Julien Lepiller @ 2020-09-19 23:41 UTC (permalink / raw) To: yasu; +Cc: help-guix Le 19 septembre 2020 19:18:14 GMT-04:00, yasu@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 >> <yasu@yasuaki.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How do I install neovim plugins? 2020-09-19 23:41 ` Julien Lepiller @ 2020-09-20 0:17 ` John Soo 2020-09-20 0:33 ` Yasuaki Kudo 2020-09-20 0:19 ` Yasuaki Kudo 1 sibling, 1 reply; 7+ messages in thread From: John Soo @ 2020-09-20 0:17 UTC (permalink / raw) To: Julien Lepiller; +Cc: help-guix 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How do I install neovim plugins? 2020-09-20 0:17 ` John Soo @ 2020-09-20 0:33 ` Yasuaki Kudo 0 siblings, 0 replies; 7+ messages in thread From: Yasuaki Kudo @ 2020-09-20 0:33 UTC (permalink / raw) To: John Soo; +Cc: help-guix 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 <jsoo1@asu.edu> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How do I install neovim plugins? 2020-09-19 23:41 ` Julien Lepiller 2020-09-20 0:17 ` John Soo @ 2020-09-20 0:19 ` Yasuaki Kudo 1 sibling, 0 replies; 7+ messages in thread From: Yasuaki Kudo @ 2020-09-20 0:19 UTC (permalink / raw) To: Julien Lepiller; +Cc: help-guix 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 <julien@lepiller.eu> wrote: > > > > Le 19 septembre 2020 19:18:14 GMT-04:00, yasu@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 >>> <yasu@yasuaki.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-09-20 0:34 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-09-19 14:04 How do I install neovim plugins? Yasuaki Kudo 2020-09-19 14:40 ` Julien Lepiller 2020-09-19 23:18 ` yasu 2020-09-19 23:41 ` Julien Lepiller 2020-09-20 0:17 ` John Soo 2020-09-20 0:33 ` Yasuaki Kudo 2020-09-20 0:19 ` Yasuaki Kudo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).