Neovim Config Switcher

Поділитися
Вставка
  • Опубліковано 10 лют 2025

КОМЕНТАРІ •

  • @ElijahManor
    @ElijahManor  Рік тому +4

    If you liked this video, please like and subscribe for further content.
    You can also join as a member of this channel for special perks youtube.com/@elijahmanor/join
    If you'd like to connect on social media, you can find me on Twitter twitter.com/elijahmanor and Mastodon hachyderm.io/@elijahmanor

  • @matthewr8502
    @matthewr8502 Рік тому +29

    Great I have been tweaking my vim/neovim setup for several decades and now I have a way to make it so I can tweak many versions in parallel :-)

    • @ElijahManor
      @ElijahManor  Рік тому +2

      YES, I love to hear that. It really have been a game changers for me to quickly switch between setups. Glad that this will help you. If Neovim nightly is a challenge, you could try `bob` a neovim version manager. I recently started using it so I could swap between nightly and stable github.com/MordechaiHadad/bob I'm considering doing a quick video on it since it has been helpful to me as well.

  • @ElijahManor
    @ElijahManor  Рік тому +23

    NOTE: You'll need to be running a Neovim nightly build to get this functionality.
    You can follow the instructions from github.com/neovim/neovim/wiki/Installing-Neovim or use a Neovim version manager such as bob github.com/MordechaiHadad/bob to quickly switch between versions.
    If that sounds like an interesting video to you, I could make that as well. Please give this comment a thumbs-up if you'd like to see that.

    • @noomondai
      @noomondai Рік тому +1

      Thank you so much!

    • @peekaboo6026
      @peekaboo6026 Рік тому +1

      Yes, please make the video

    • @ElijahManor
      @ElijahManor  Рік тому +1

      @@peekaboo6026 I’m working on material for a video on the new features of Neovim 0.9 (which includes this feature). Hopefully I can get another video soon about quickly switching between versions of Neovim.

    • @miapurplefate
      @miapurplefate Рік тому

      thanks a lot btw

    • @egoworks5611
      @egoworks5611 8 місяців тому

      I was fixing stuff that wasn't broken huh. ty, didn't know I didn't update nvim ever since 0.7

  • @BrandonKBoswell
    @BrandonKBoswell Рік тому +3

    Thank you for this, Elijah. I have been dipping my toe into Neovim and the ability to try out the different flavors was keeping me from choosing one and switching over. I had started with NvChad, but I think it turns out LazyVim feels closer to where I want to start.

    • @ElijahManor
      @ElijahManor  Рік тому

      Awesome, glad this was helpful to you. There are so many good options. Having a way to switch between them is nice... even if it's multiple versions of the same thing (trying different options).

  • @isaacvicente
    @isaacvicente Рік тому +3

    This new feature of Neovim is mind-blowing, and what you did is really awesome as well. I will do my best to share this video. Congrats!

  • @awabqureshi814
    @awabqureshi814 Рік тому +2

    I've been looking like this for ages. Thanks so much!

  • @danielwilcox8916
    @danielwilcox8916 Рік тому +3

    This will make my neovim distro hopping so much easier to manage!

    • @ElijahManor
      @ElijahManor  Рік тому +1

      And good news is that v0.9 was released today, so the feature if available in the stable release! ua-cam.com/users/postUgkxCoXgAqgnq3y37xX3mrTjFJR0y6m1sf6C

  • @jamesmillsnicholas7813
    @jamesmillsnicholas7813 Рік тому +2

    This is a voyage of discovery. I've already learnt how unusual some of my most basic key-mappings are compared to the mainstream distros

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Great point, I've been very curious about how other distros setup their keymaps. Doesn't mean they are better, but typically a lot of thought has been put into them so I've found it to be a good exercise to think about how keymaps scale with regards to semantic meaning (something that i'll remember because there is some pattern or construct to them)

  • @iduran
    @iduran Рік тому +3

    Thanks a lot for this🙏🏻. A game changer for trying different nvim configs. Was trying nyoom-nvim the other day with XDG variables but still there were issues going on, so this implementation is quite neat 👍🏻

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Glad I could help! Yes, I've tried other techniques in the past... and this one is much better. Not everyone is up to a dev or nightly release so that may hinder some until an official release. I've recently started using the `bob` neovim version manager to quickly switch between neovim versions github.com/MordechaiHadad/bob I might do a quick video on using that if people find that helpful/interesting

  • @pnavais
    @pnavais Рік тому +3

    Another awesome ultra quality video, as usual. Insane how you take a bit of somehow “hidden” documentation and build such an elegant and simple script. Thanks also for the key binding , ultra handy 🎉. Congrats for the excellent work and keep it going !

    • @ElijahManor
      @ElijahManor  Рік тому

      Oh wow, glad you enjoyed the concept! Previously I had tried other techniques and they were more complicated and didn't work as well, but then learned about this new feature and it made things so much nicer. I'm glad that I got to share about it. Thanks for watching and sharing your thoughts! Have a great rest of your week

    • @ElijahManor
      @ElijahManor  Рік тому +1

      @@pnavais thank you so much! yes, bob is great and I def want to do a video on it. I hear you about kickstart.nvim. I did a video on it a while back before they switched to lazy.nvim. I’m on this LazyVim series atm but I think after a few more in that playlist I’ll circle back and build content on top of kickstart since it’s so closer to the metal with a decent starting point. I think that would appeal to a larger audience. Like kickstart.nvim wouldn’t be the topic, but I’d show how to setup and/or do things on top of it

    • @pnavais
      @pnavais Рік тому +1

      @@ElijahManor oh yes you are absolutely right about kickstart I forgot you already covered that ! And what about a quick comparison between main distros (Astro , lazy , NvChad, etc..) ? I’m using lazy btw but I miss some nvchad bultins like theme switcher , color schemes, opening terminals,…. I think that would be also handy for folks in the editor hopping journey 😋. And right after fixing that , we can jump straight to Helix 🧬 and forget neovim at all 🤣.

    • @ElijahManor
      @ElijahManor  Рік тому +1

      ​@@pnavais Lazy has a theme switcher `uC` and terminals `ft` but not sure how they compare to NvChad. I'd like to get acquainted with other Neovim distros so I can compare/contrast. That would be a great video idaea (as you mentioned). So, yeah add that to my backlog :) I love the idea of Helix, but some of the differences feel like they would be hard for me to adjust, but maybe not.

  • @JoshMedeski
    @JoshMedeski Рік тому +2

    Very helpful, I was struggling with this when upgrading my setup to LazyVim, now I know I can experiment with different configs at the same time with this new feature!

    • @ElijahManor
      @ElijahManor  Рік тому

      Thanks Josh! Yeah, I was very pleased for the feature. I had tried other options and there were downsides to them. This option is great. I know not everyone feels comfortable with a dev or nightly release, but it should hopefully come soon to a stable release

  • @matteostara
    @matteostara Рік тому +7

    Ridiculously easy, thanks for demoing that! ❤

    • @ElijahManor
      @ElijahManor  Рік тому +1

      I know, right!?! I had a previous scripts in the past, but they have numerous problems and some were more complex... but this makes things very straightforward! Yay. Thanks for watching and supporting the channel

    • @matteostara
      @matteostara Рік тому +1

      @@ElijahManor totally! I'm gonna hold on until it gets to maybe a stable release, but the temptation is great! 😂

    • @ElijahManor
      @ElijahManor  Рік тому +1

      If you want to try it sooner, then maybe try a neovim version switcher like `bob` github.com/MordechaiHadad/bob I've started to use it and it's really handy to be able to switch between nightly and stable and other versions very quickly

    • @matteostara
      @matteostara Рік тому

      @@ElijahManor I didn't know about that, thanks 🙏

  • @MarkStrus
    @MarkStrus Рік тому +2

    Thank You!!! This is something I've wanted to be able to properly do for a long time. It was such a nightmare trying to update my config without disrupting my work. This is perfect to be able to update my config safely but still have my current setup for when I need to work without disruptions. I've wanted to migrate from Packer to Lazy Nvim for a while but kept putting it off because even the slightest changes/updates always seem to be a problem.
    As a bonus, I have been getting treesitter errors with certain plugins since the last big update for things like closing buffers/tabs in barbar. This somehow also fixed that issue and I'm guessing it was because of some hidden file that needed to be updated that I couldn't find from old plugin installs. I've tried using Packer to uninstall and reinstall the plugins, completely deleted NeoVim and reinstalled, etc, but couldn't get these errors to stop. But moving my current config into a "myVim" folder fixed all the errors.

  • @WillEhrendreich
    @WillEhrendreich Рік тому

    Just want to say thank you for this video, I have genuinely found benefit from it. I break my config a lot. I hate when it's so broken I don't have a good way to edit the broken config files, because I'm cutting off the branch I'm standing on.
    With this little trick, I have a few different base configuration options, and when I inevitably Bork my main conf, going in and fixing it is trivial, because I can switch to a good working version of lazyvim or astronvim, or whatever.
    Absolutely huge difference. Thanks!

    • @ElijahManor
      @ElijahManor  Рік тому

      Yay, that is great that you found it helpful. And yes, I agree. I like to have something that I can count on and other things I can tinker with. Very handy. Thank you for watching and sharing your success story!

  • @danielyrovas
    @danielyrovas Рік тому +1

    This is really good, I've been really needing this tbh.

    • @ElijahManor
      @ElijahManor  Рік тому

      Yay, so glad to hear. With so many great configs around and new things to try, it's a nice way to experiment and play around without sacrificing something that is stable and you can be productive with.

  • @rochakgupta6116
    @rochakgupta6116 Рік тому +1

    Great job once again. Thanks for putting this together.

    • @ElijahManor
      @ElijahManor  Рік тому

      Thanks again! Yay, thank you for coming back :) Have a great rest of your day!

  • @jizhang2407
    @jizhang2407 Рік тому +1

    👍Once again, thanks for such a crystal clear and high quality video tutorial for this amazing tool for neovim config.

    • @ElijahManor
      @ElijahManor  Рік тому

      You are welcome! Glad you liked it. I'm excited about making more content. I appreciate your support and encouragement.

  • @sunnyheheheh9401
    @sunnyheheheh9401 Рік тому +1

    Thank God this feature came i was about to script out the config switching part using bash but this vid saved my day

    • @ElijahManor
      @ElijahManor  Рік тому

      I have also created such a script... but when I found out about this feature, things became much more easy and straightforward (without the downside of how I was doing it). If you'd rather not sacrifice your main Neovim with nightly you can try a. neovim version manager like `bob` github.com/MordechaiHadad/bob I might do a short video on it since I've found it helpful to quickly jump between a nightly version of neovim and stable if needed. Does that sound like an interesting or helpful video?

    • @sunnyheheheh9401
      @sunnyheheheh9401 Рік тому

      @@ElijahManor that would be really good video for people who would switch versions due to any potential bugs or breaking feature in the dev version like developers and some pro people , but majoritiy would not . So I think you should reconsider , but it will be helpful surely. You should ask more people , I am not experienced enough here and i may be wrong

  • @oussaber
    @oussaber Рік тому +1

    thanks, that was very helpful for me as i'm exploring neovim

    • @ElijahManor
      @ElijahManor  Рік тому

      Great, the new feature is very helpful. Thanks for stopping by and leaving a note!

  • @jmbuhr
    @jmbuhr Рік тому +1

    That's perfect! Just as I was about to try some of these hacky workarounds after switching between configs a fair bit for my Quarto and Neovim series.

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Thanks, yeah I've tried other techniques before and they all seemed to have their issues. This is much more straightforward and fixes a lot of the pain. Thanks for watching and supporting the channel

  • @j1d7s
    @j1d7s Рік тому

    Thank you, this is a really nice way to switch between configs and avoid messing anything up, I will try it out!

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Hope you enjoy! Thanks for watching and supporting the channel

  • @Danielo515
    @Danielo515 Рік тому +2

    Oh my god, this is such a game changer. So far, the only team that managed to make this work before was Lunarvim. Now my idea of having my most basic config as a plugin makes even more sense!

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Yay, glad you found it helpful! I've been having fun playing with it. Things are so much more flexible now.

    • @jajpater
      @jajpater Рік тому

      I wonder if I can use this with lvim? And other configs like SpaceVim etc.

    • @Danielo515
      @Danielo515 Рік тому

      @@jajpater my understanding is that you should. Not sure how the specific workaround that lunar vim does will interact with this feature, but all those projects that are supposed to become your main neovim should work out of the box

  • @feedbeck
    @feedbeck Рік тому

    As someone ricing a lot on the past couple weeks. This is amazing!!!! Thx!

    • @ElijahManor
      @ElijahManor  Рік тому

      Glad you liked it! It has been pretty fun for me to play with. Thanks for the support!

  • @emmanuellmiqueletti4605
    @emmanuellmiqueletti4605 Рік тому +1

    I'm new to vim and I'm exploring all projects thanks for showing that

    • @ElijahManor
      @ElijahManor  Рік тому

      Great, glad that was helpful. It's a nice way to try new things without messing up your main config

  • @meaningfulname9437
    @meaningfulname9437 Рік тому +1

    Thank you very much, boss. ❤️

    • @ElijahManor
      @ElijahManor  Рік тому

      You're very welcome! Thanks for watching and supporting the channel

  • @matteostara
    @matteostara Рік тому

    Hey @ElijahManor I finally had time to sit down and play with this config and it's really efficient and helpful, thanks once again for illustrating the process :)

    • @ElijahManor
      @ElijahManor  Рік тому

      Yay, so glad you found it helpful!

  • @randall.chamberlain
    @randall.chamberlain Рік тому

    Brilliant. Double brilliant!!
    Nice job mate

  • @fahimanayet
    @fahimanayet Рік тому

    This is exactly what I wanted. Finally a reliable solution. Thanks man.

  • @Biowulf21
    @Biowulf21 Рік тому

    Awesome. Gave the channel a sub. Please keep making videos!

    • @ElijahManor
      @ElijahManor  Рік тому

      Thanks for the sub! Much appreciated. I def have a long list of things I'd like to cover, so stay tuned :)

  • @billeterk
    @billeterk Рік тому +1

    Interesting. I’d done something similar using #3 all XDG vars + fzf. Great that it’s now a feature!

    • @ElijahManor
      @ElijahManor  Рік тому

      Yeah, there were a few ways to do it before, but each of them had minor pros/cons. This new way solves a lot of those cons. It is so nice and I enjoy using it. Glad you stopped by and left a note! Have a great rest of your week

  • @lpanebr
    @lpanebr Рік тому +1

    Very good! Thanks! When I upgrade to version 9 I'll try it out.

    • @ElijahManor
      @ElijahManor  Рік тому

      I've started using the bob neovim version manager so I can quickly and easily switch between a stable version of neovim and a nightly github.com/MordechaiHadad/bob I might do a short video on showing various ways to install Neovim. I think some may find value from that.

    • @lpanebr
      @lpanebr Рік тому +1

      @@ElijahManor I would be totally lost in the neverending rabbit hole. Ahahaha. I will maybe use the config switch to check other people workflow, keybindings and plugins. But version switching I'm not sure.. maybe to say l switch from stable and nightly if it could also also build it.

    • @ElijahManor
      @ElijahManor  Рік тому +1

      @@lpanebr yeah, depending on which version you install it may take a while :) waiting for v0.9 to land works too... hopefully that'll be soon. April 7th is the current date (but I'm not sure how hard that is) github.com/neovim/neovim/milestone/28

  • @ORostov
    @ORostov Рік тому

    thanks for a video, you motivate me!

    • @ElijahManor
      @ElijahManor  Рік тому

      You are so welcome! Thanks for the encouragement and support of the channel

  • @ninjarogue
    @ninjarogue Рік тому

    thank you for the content!

  • @alexstone691
    @alexstone691 Рік тому +3

    This is much much cleaner than i expected, sad its on nightly though

    • @ElijahManor
      @ElijahManor  Рік тому

      True, running a dev or nightly release is a bit risky. But you could try a Neovim version manager such as bob github.com/MordechaiHadad/bob to quickly switch between versions. That could be an interesting video for me to make to show how that works. It's handy to quickly switch back and forth without the risk of messing everything up :)

    • @alexstone691
      @alexstone691 Рік тому +1

      @@ElijahManor Ill have to try that,thanks

  • @zestynotions
    @zestynotions Рік тому +1

    Nice overview, cheers

    • @ElijahManor
      @ElijahManor  Рік тому

      Thank you so much! Appreciate the watch and for supporting the channel!

  • @batboy49
    @batboy49 Рік тому

    Love it exactly what I was looking for

    • @ElijahManor
      @ElijahManor  Рік тому

      Yay! Glad it was helpful. If you want to try it now and not sure about going nightly, then maybe use a neovim version manager like `bob` github.com/MordechaiHadad/bob I've been using it to switch back and forth between nightly and stable (or other versions) and it's been pretty nice

    • @batboy49
      @batboy49 Рік тому +1

      @Elijah Manor yeah only real mod I made was I put it in my .aliases instead of my .zshrc becausevI segregate my aliases from my zsh configuration...works great

    • @ElijahManor
      @ElijahManor  Рік тому

      @@batboy49 Awesome!

  • @vanduirsantana
    @vanduirsantana 11 місяців тому

    Funcionou que é uma beleza. Faltou o script para o bash, mas com alguns ajustes funcionou tudo ok.
    Um alô do Brasil!!

  • @Raubritterr222
    @Raubritterr222 Рік тому +1

    Wow, neat! Thank you!

    • @ElijahManor
      @ElijahManor  Рік тому

      You bet! Glad you found it helpful! Thanks for watching

  • @gerardomahony2268
    @gerardomahony2268 Рік тому

    Very nice! Thank you

    • @ElijahManor
      @ElijahManor  Рік тому +1

      So glad you found value in it and thanks for supporting the channel!

  • @TerryDellino
    @TerryDellino Рік тому +1

    Thank you!

    • @ElijahManor
      @ElijahManor  Рік тому

      You're welcome! Thanks for coming back and supporting the channel!

  • @equu497
    @equu497 Рік тому +1

    Terrific video! Exactly what I wanted. It's too late for me to try this, but does it work on v0.9.1 or does it have to be nightly?

    • @ElijahManor
      @ElijahManor  Рік тому +1

      The feature landed in v0.9.0 so you are good. When I made this video v0.9.0 hadn't been launched yet, so the feature was only on the main branch.

  • @ajmasia
    @ajmasia Рік тому

    Great tool!

  • @inteliconn995
    @inteliconn995 Рік тому +1

    Thanks!

    • @ElijahManor
      @ElijahManor  Рік тому

      No problem! Thanks for watching :)

  • @tandlose
    @tandlose Рік тому +1

    good job!
    It would be very nice if you could persist the config somehow. Most of the time if you want to use say AstroNvim you want to use it for some time. So having a nvim_default that launches the same fzf would be great. Also nice if you could add and remove options with a command instead of going into the script "nvims-add AstroNvim"

    • @ElijahManor
      @ElijahManor  Рік тому

      Yeah, the script could be much smarter. I would recommend that your nvim folder be whatever you normally use and reserve the others for temporary experiments. But I get what you are saying. Some additional state (either an ENV variable, config file, etc...) could be added to add that level of persistence that you mentioned. Also the script file could be abstracted to a node script or some other language to make it much richer. The underlying NVIM_APPNAME env var would be key for those to work though.

  • @WaldirBorbaJunior
    @WaldirBorbaJunior Рік тому

    Wow... 100000000000 of likes... I really love it. Perfect

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Yay, and now there is v0.9 stable with this feature baked-in. No need for a nightly release

  • @hellmag123
    @hellmag123 2 місяці тому

    Hi Elijah - Thanks - I wonder if there is a "good" way to maybe setup links (ln -s) to plugin share directories sort of like pnpm. Then maybe need not to "Lazy update" each of the multiple configs - of course better to have just one :) eventually

  • @silakanveli
    @silakanveli Рік тому +2

    Make a video of lazyvim copilot setup. Suggests, panels and all. Thanks

    • @ElijahManor
      @ElijahManor  Рік тому +1

      That topic is in my list of LazyVim videos to go in my playlist. I just wanted to do this quick video because I thought it was timely and I've been using it recently to switch between various configs to play and experiment with things. Thank you so much for your interest and for supporting the channel

  • @NormRasmussen
    @NormRasmussen Рік тому

    Elijah - this changed the game for my nvim usage! I've tried all the other plugins, $XDG switching and more, but your little alias/zshrc function is so elegant and minimal.
    Two unrelated questions:
    1. In your video is your CLI in the terminal via neovim or just the regular terminal? If it is in neovim, how did you get it to look so nice? The terminal experience is the one thing I can't seem to enjoy using.
    2. How did you jump to specific words/EOL in the CLI? This makes me think you're in neovim... but would love to know the trick to jumping around in the regular CLI!

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Yay, glad it helped and yes it works much nicer than the previous $XDG way (less cons). As for your questions, I don't remember exactly what I was doing in this video, but what you were seeing was a special vi-mode with my shell (zsh) so I can use vim-like commands to update the CLI which is really handy. I've thought about doing a whole video about the topic because there are various levels of goodness you can use. I'd recommend the following... github.com/jeffreytse/zsh-vi-mode

    • @NormRasmussen
      @NormRasmussen Рік тому

      @@ElijahManor Holy moly, perfect! My new favorite zsh extension! Thanks, Elijah!

  • @ItsYumshot
    @ItsYumshot Рік тому

    I added a few comments to your gist to support Bash as well as Fish Shells. Hopefully it helps!

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Oh that is great! I'm not familiar with fish, so that is awesome! And I prob should have tested bash too. Kudos. Thanks

    • @ItsYumshot
      @ItsYumshot Рік тому +1

      @ElijahManor it's becoming alot more widly used. I use it as my daily driver currently for my workspace. So I had to give your script a shot

    • @ElijahManor
      @ElijahManor  Рік тому

      Yeah, I should probably know more of the differences. Thank you again

  • @RishiYT-is1ld
    @RishiYT-is1ld 4 місяці тому

    Thank u

  • @niided
    @niided Рік тому +1

    Is there by any chance a way to implement this in windows ? Using powershell or whichever terminal emulator? Great video👍👍

    • @ElijahManor
      @ElijahManor  Рік тому

      Thanks! Take a look at this gist. There are some comments by others with variations for fish, powershell, etc... gist.github.com/elijahmanor/b279553c0132bfad7eae23e34ceb593b

    • @niided
      @niided Рік тому

      @@ElijahManor Thanks

  • @Amin-ug9ny
    @Amin-ug9ny Рік тому +1

    Thank you so much for this valuable info... However, I have some issues with this. After adding the code and changing my nvim folder name. I get address and file not found errors, Do I need to change and edit all addresses in the config files ?

    • @ElijahManor
      @ElijahManor  Рік тому

      What operating system are you using? Do you have fzf installed?

  • @PhucLe-qs7nx
    @PhucLe-qs7nx Рік тому +1

    Nice. One question, any reason yo use C-a but not something like, C-n? C-a has a default mapping of jumping to the beginning of line in terminal already, but C-n does not as far as I know.

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Good question. I use a vim-mode plugin in oh-my-zsh to navigate through my terminal, so I'm not missing that keymap. However, you can pick whatever you want for the binding. With much of this it's very much user driven based on your needs... since terminal and neovim keymaps are all over the place depending on each user's preference. Thank you for watching and supporting the channel!

  • @anch95
    @anch95 Рік тому +1

    Thank you for this! But, I get an error "bindkey: command not found" when running ~/.zshrc at source, can you help me with this? I'm using WSL btw.
    Edit: I changed it to bind cmd, but now I get: "not a valid number: ~50 Nothing selected" when using nvims.

  • @anoopnag7059
    @anoopnag7059 Рік тому

    I am new to neovim, and current using nvchad configurations.
    I would like to understand what is the use case of mainining multiple configs like nvchad, lazy etc. It will be helpful for me to understand and use the new feature as mentioned in this video.

    • @ElijahManor
      @ElijahManor  Рік тому

      The use case is less having a bunch of neovim distros, but that is definitely what i showed as an extreme example.
      The use case I primarily use it for, is having a few configs that I can swap between depending on my needs. My default choice ~/.config/nvim is the config that I depend upon, that I'm most confident with, that is solid, that I use for primary productivity, when I need to get things done. The other config choices are things I want to experiment around with. Maybe a few are other distros I want to test out, maybe it's a fresh distro of my preferred default, but I want to tweak some settings and experiment with other things that might would have otherwise jeopardized my default experience. Or maybe you have a config that is specific to some type of work you do. Maybe you have one that is VERY geared to writing with a bunch of plugins for spelling, grammar, and other such writing tools. Maybe you have a very complicated config that is totally geared for Front-End development only with all the bells and whistles that you'd rather not clutter another config that is totally geared toward Rust development or something.
      Yes, you could use one config to do everything, but there are risks of breaking your current config and getting into a state that isn't useful for just being productive. Having other configs can help you focus and/or try out new things.
      Hope that helps

  • @gradientO
    @gradientO Рік тому

    Hey 👋 I'm using the vscode-neovim Extension and wondering how to disable a bunch of plugins when vscode is calling neovim or using a seperate config file

  • @rp2804
    @rp2804 Рік тому +1

    Wonder if this will work in windows, all the script you wrote! I am newbie so is it possible to get the same working in windows? Have you tested it in Windows?

    • @ElijahManor
      @ElijahManor  Рік тому

      I don't have a modern windows machine handy, but the gist I listed in the video description has comments from other users who have tweaked the script to work on Windows. I've not tried them, but feel free to check them out.

  • @kkolpetto
    @kkolpetto Рік тому

    wow this is a really great great video! thanks.
    I've first switched from Packer to Lazy following your indication of other video.
    Then cloned some nvim configurations but i've modified a little the function in .zshrc file.
    I've cloned the nvim configuration in varius directories named nvim-CONFIG (nvim (dash) and CONFIG is the name of the specific nvim configuration under the ~/.config directory. If you list the directories sorted by name nvim configurations (directories)are all near each others and on top there is the classic nvim directory. I've added also a nvim-clean directory (empty direcrtory - for clean nvim with no configiguration at all) and one nvim-test directory to do some tests on new plugins or configuration set up before moving to the classic nvim directory. I've also created a nvim-bak config directory (just a back up of my nvim working configuration after changing the plugin manager from Packer to Lazy - just in case ).
    I've inserted in .zshrc a function (called nvim-alias) to automatically generate the aliases for the varius nvin configurations (alias is the directory name where the configuration is inserted in). Then the function is called directly in .zshrc. But function is also listed in terminal if yuo type nvim- and (nvim (dash) and

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Glad you enjoy the videos and find value in them. So cool to see you play around and experiment with the idea. To your point, there are great use cases of alternate configs for your personal use other than just other distros. Thanks for your excitement and support of the channel. Sounds like you are a repeat viewer. Always appreciated and thanks for saying hi!

    • @kkolpetto
      @kkolpetto Рік тому +1

      @@ElijahManor thanks,
      I found a potential flaw in my solution.
      As there is a function named "nvim-alias" I think is not possibile to have also an nvim configuration named "alias". Even it is quite a remote possibility , this condition is nevertheless not tested. So may be there is the need to add some additional code when generating nvim configurations aliases to skip ahead and not generate an alias named "nvim-alias" but providing at the end a warning message "nvim-alias" config not generated. Evnetual directory "nvim-alias" with an nvim configuration in it, will be accessible just with the function nvims selecting the entry "alias". But from my point of wiew better not generate confusion and avoid to have a nvim config named alias. Just keep things in the right way to avoid clash.
      Thank again for your videos, really well done and great for inspirations .

    • @ElijahManor
      @ElijahManor  Рік тому

      @@kkolpetto yeah, that's a pretty edge case. cool to see others play off of the idea. i've seen a couple others in the wild as well. have fun!

  • @BobiBobObana
    @BobiBobObana 11 місяців тому

    how to fix such an error (zsh: ~nvims)
    not a valid number: ~50
    Nothing selected

  • @karthickb1973
    @karthickb1973 Рік тому +1

    alright, i have an alias setup like you mentioned in my xonsh shell and installed AstroVim for example. How can i start nvim with this new APP_NAME as nvim presently cannot understand the switch

    • @ElijahManor
      @ElijahManor  Рік тому +1

      What version of Neovim are you using?

    • @karthickb1973
      @karthickb1973 Рік тому

      @@ElijahManor thanks. i got the nightly. i have also made it working on xonsh shell. this alias did the trick.
      aliases['nvim-astro']="$NVIM_APPNAME='AstroVim'; nvim"
      i have updated the same in your Gist. Thanks once again.

    • @ElijahManor
      @ElijahManor  Рік тому +1

      @@karthickb1973 awesome! Nicely done

  • @jizhang2407
    @jizhang2407 Рік тому +1

    I wonder how to apply this config switcher in Windows system...? Appreciate suggestions from Elijah and your followers here. Thanks.

    • @ElijahManor
      @ElijahManor  Рік тому

      The gist has some suggestions of alternate scripts for other shells including Windows gist.github.com/elijahmanor/b279553c0132bfad7eae23e34ceb593b Hope that helps! I don't have a Windows machine, but that eventually might be nice for me to test such things.

    • @ElijahManor
      @ElijahManor  Рік тому

      @@jizhang2407 glad you got something to work! I have almost ZERO powershell experience, so unfortunately I'm not much help there. Feel free to leave a comment on the gist with your findings to help others.

  • @farzadmf
    @farzadmf Рік тому +1

    I was so looking forward to this feature that I started using nightly, but I noticed my Telescope highlights is broken in nightly where the preview pane doesn't change when I search the highlights. Not sure if you've noticed/had the same issue or not

    • @ElijahManor
      @ElijahManor  Рік тому +1

      Hmm, I haven't seen that yet. I wonder when that broke exactly as I downloaded nightly several days ago. You might find a Neovim version manager like `bob` github.com/MordechaiHadad/bob to be handy where you can quickly switch between versions of Neovim. The benefit is that you can have a stable version to "get things done" in case nightly or another version is having issues. I'm considering doing a video on `bob` since that has been helpful for me and I don't think it's very well known. Thoughts?

    • @farzadmf
      @farzadmf Рік тому +1

      That's actually what I'm using 😆, and I like it; it's very convenient to use.
      The only thing is that, I cannot use it on a machine with older C++ libs, and for that, I need to build from source (not a huge deal, per se, but all the conveniences of bob are basically gone on that machine).
      But yeah, I think it's a useful tool to deserve a video ... and maybe you can also mention that it may not (doesn't?) work if your distribution has older C++ libs

    • @ElijahManor
      @ElijahManor  Рік тому +1

      @@farzadmf Glad that is mostly works for you and I appreciate the heads up. Have an awesome day!

    • @farzadmf
      @farzadmf Рік тому

      @@ElijahManor You too, keep up the great work; really like your videos

  • @MRawash
    @MRawash Рік тому +1

    What happens with cache and local files?

    • @MRawash
      @MRawash Рік тому +1

      @IuseArchbtw-di6cd actually, I tried it, the cache and local directories match the NVIM_APPNAME, so e.g. if you launch with NVIM_APPNAME='AstroNVIM', it'll match '.config/AstroNVIM' with '.local/share/AstroNVIM', which is absolutely perfect! you can keep both, your config and cache isolated, this is a godsend and I can imagine countless examples where it'd be useful!

  • @SantiagoColorado-y9r
    @SantiagoColorado-y9r Рік тому +1

    so im trying this out but instead of pulling up the menu as shown its showing my my directory folders, like documents/ home/ etc. any reason its not working correct?

    • @ElijahManor
      @ElijahManor  Рік тому +1

      What operating system are you using? Do you have fzf installed?

    • @SantiagoColorado-y9r
      @SantiagoColorado-y9r Рік тому

      @@ElijahManor I has pop-os going for a test run, the problem was likely another plugin overriding the key. It worked with enter instead of tab for me, so it was working I just wasnt aware of the key switch.

  • @seshadribasava2801
    @seshadribasava2801 Рік тому +2

    Hey, thanks a lot for the video. However, I get the following error : not a valid number: ~50
    nothing selected. Can anyone help me ?

    • @ElijahManor
      @ElijahManor  Рік тому

      Maybe you can create a private gist with a readme.md and provide more detail on what you are seeing. Once you save the gist you can drag/drop and attach images to the comments with a screenshot and/or short video. Feel free to post the private gist here and I can take a look. I'd also need to know what operation system you are using, what shell (bash, zsh, fish, powershell, WSL, etc)

    • @cosmicegg1882
      @cosmicegg1882 Рік тому

      Make sure the configs are in their own folder and not in the nvim config folder ex. ~/.config/NvChad and not ~/.config/Nvim/NvChad that solved this issue for me

  • @sibouras792
    @sibouras792 Рік тому

    always wanted to try many configs, thanks! right now i have a config with packer, what happens if i install a config with lazy? will my packer config get deleted?

    • @ElijahManor
      @ElijahManor  Рік тому +2

      Both packer and lazy download their plugins to vim.fn.stdpath("data") (aka $XDG_DATA_HOME) which typically is somewhere like ~/.local/share on mac/linux and ~/AppData/Local on windows. So, it should work just fine. All your plugins for YourPackerThing config would be stored in the ~/.local/share/YourPackerThing folder and your plugins for YouLazyThing config would be stored in the ~/.local/shareYourLazyThing folder.

    • @sibouras792
      @sibouras792 Рік тому +1

      @@ElijahManor tried it and it works like a charm, thanks again

    • @ElijahManor
      @ElijahManor  Рік тому

      Awesome, great to hear!

  • @shiva.sharan
    @shiva.sharan Рік тому +1

    Neat.

    • @ElijahManor
      @ElijahManor  Рік тому

      Thanks! I've been having a blast playing around with it. Of course you need to be running nightly. I wonder if it'd be helpful to show different ways to swap between versions of Neovim?

  • @abnormal6376
    @abnormal6376 6 місяців тому

    any idea to implement this on windows please?

  • @Pakrohk
    @Pakrohk Рік тому

    hi bro, please test my config (nvpak) and tell me your opinion about it.

  • @malter1628
    @malter1628 Рік тому +1

    Do you still need nightly on 0.9.0?

    • @ElijahManor
      @ElijahManor  Рік тому

      The feature in this video is in 0.9.0. I’m working on a video about the new features in v0.9.0, hopefully will be ready tomorrow morning (my time)

  • @ryantheprogramming3058
    @ryantheprogramming3058 Рік тому +1

    Can you show me how to do it on window? Thanks

    • @ElijahManor
      @ElijahManor  Рік тому

      I've not tried it on Windows. What terminal do you use, what shell? Are you running Neovim nightly?

    • @ryantheprogramming3058
      @ryantheprogramming3058 Рік тому

      @@ElijahManor i am using window terminal on powershell 7

  • @isaacguardiani4649
    @isaacguardiani4649 Рік тому +1

    Im about to have a field day with this shit because my main conf is getting bloated

    • @ElijahManor
      @ElijahManor  Рік тому

      Oh great, glad that has sparked some new ideas for you to experiment with! Yay

  • @hackermen69
    @hackermen69 Рік тому +1

    ls ~/.config | NVIM_APPNAME=$(fzf --height 40% --reverse -q "nv" --select-1) nvim
    ^ one liner to have dynamic config, just name nvim configs dir starting with nv so only those get filtered.

    • @ElijahManor
      @ElijahManor  Рік тому

      Nicely done, I like it! Or filter ahead of time with grep
      ls ~/.config | grep "nv" | NVIM_APPNAME=$(fzf --height 40% --reverse --select-1) nvim

  • @BarryBazzawillWilliams
    @BarryBazzawillWilliams Рік тому

    Love this I have just found the awesomness of astrovim, kickstart nvim, etc and this makes it much nicer to change. Would it be possible to store all alt configs in ~/.config/nvims/ and have zsh auto generate

    • @ElijahManor
      @ElijahManor  Рік тому

      Yes, you could create a folder in .config
      mkdir -p ~/.config/nvims
      Then clone a nvim distro to that folder...
      git clone github.com/NvChad/NvChad ~/.config/nvims/NvChad --depth 1
      Then when launching it, apply the partial path
      NVIM_APPNAME=nvims/NvChad nvim
      And you could update the aliases to the partial path. The auto-complete would work like in the video...
      nvim- # toggle between options
      If you used the nvims function, you'd update the items to use the partial paths
      items=("default" "nvims/kickstart" "nvims/LazyVim" "nvims/NvChad" "nvims/AstroNvim")
      Hope that helps!