NVF | The Superior Way To Configure Neovim With Nix

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 122

  •  17 วันที่ผ่านมา +74

    I'm just finishing the transition of my Neovim configuration to Nixvim and now you present NVF.

    • @winder2412
      @winder2412 17 วันที่ผ่านมา +2

      same 😂
      I'll probably start transitioning to nvf since i love raf's work

    • @randomexplosion6527
      @randomexplosion6527 17 วันที่ผ่านมา

      Rip

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj 14 วันที่ผ่านมา

      would rather use somekind of "distro"
      eg lunarvim
      who knows, need to check their repo out, maybe contributing to add options etc easily... for plugin ecosystem of neovim is easy...
      or atleast if its not.. they should make system , so adding these things would be super simple, that a "potato" even can contribute and make PRs

    • @gaurav.69420
      @gaurav.69420 7 วันที่ผ่านมา

      us moment

  • @MD.TaufikKhan-g3c
    @MD.TaufikKhan-g3c 17 วันที่ผ่านมา +33

    I completed nixvim just a month ago now you give me this

  • @bluepapaya77
    @bluepapaya77 9 วันที่ผ่านมา +3

    Perfect video for me to see at this moment.

  • @ErikVanKelst
    @ErikVanKelst 7 วันที่ผ่านมา +2

    No more excuses to not use Neovim, great project! NixOS is a blessing and being able to define nvim config this way is just perfect! Keep up the great work and thanks a lot!

  • @JohnMichaelVoudouris
    @JohnMichaelVoudouris 17 วันที่ผ่านมา +7

    Hooray! More quality NixOS information/education!!

  • @santiagowu5365
    @santiagowu5365 17 วันที่ผ่านมา +8

    I'll definitively try this out. I feel like NixVim is a little bit restrictive, but this seems to be better.

  • @CountDookuful
    @CountDookuful 17 วันที่ผ่านมา +10

    I used nixvim for ages and finally just switched to nixCats.
    That way I can just configure everything in Lua. And I don't need to wait for my maintainer to add support for the plugins I want.
    I can also set up custom behaviors way more easily.

    • @tommy.3377
      @tommy.3377 17 วันที่ผ่านมา

      cool sounds amazing, I am checking it out right now :")

    • @NeoAemaeth
      @NeoAemaeth 11 วันที่ผ่านมา

      Yup, nixCats is great. I always found the docs quite convoluted, but once I wrapped my head around it, I definitely found it to be superior to the other options.

    • @nooblearn2code
      @nooblearn2code 9 วันที่ผ่านมา

      I’m currently not using nix for managing pkgs, but I want to change homebrew to nix, and this is what I want, I want some methods that allow me to use my current config with less efforts.
      😅 now struggling with tmux plugins btw

    • @7Tijntje
      @7Tijntje 9 วันที่ผ่านมา +1

      Nixcats is craaazzyy though whahaha
      I'm a software engineer and I know how to read datasheets from chips, have implemented i2c, spi, TCP/IP protocols etc
      I've been working in software development for over a 14 years, and have been daily driving Linux for 10 years including Nix for a year now.
      The Nixcats documentation is impenetrable xD
      I mean, I know that if I put myself to it, I can understand it but ooohhh man.
      Nixvim has been good for me so far.

    • @tommy.3377
      @tommy.3377 3 วันที่ผ่านมา

      Hi @@CountDookuful can you help me out with the nixCats
      Some good resources where I can find how to configure and get started

  • @caffeine01
    @caffeine01 17 วันที่ผ่านมา +2

    was literally thinking about configuring neovim with nix earlier today, and then you post this, thanks!

  • @kalyanoliveira3224
    @kalyanoliveira3224 17 วันที่ผ่านมา +1

    cant tell you how much I needed this video right now, thanks!

  • @BeepDog
    @BeepDog 15 วันที่ผ่านมา +1

    I love the addition of the kitty cursor tail :D

  • @jacekpoz2203
    @jacekpoz2203 17 วันที่ผ่านมา +30

    raf is the goat

    • @Omaaar-e7o
      @Omaaar-e7o 17 วันที่ผ่านมา +2

      raf is woke

    • @min3craftpolska514
      @min3craftpolska514 17 วันที่ผ่านมา +4

      this comment has been sponsored by raf

    • @aimpizza6823
      @aimpizza6823 3 วันที่ผ่านมา

      "Woke" is a kind of term only used by right-wing idiots

  • @Dwarf_Software
    @Dwarf_Software 7 วันที่ผ่านมา +3

    Can you create a video about NixCats-Neovim? I’m having a hard time figuring out how to use it, and your videos are always incredibly helpful!

    • @ekr990011
      @ekr990011 3 วันที่ผ่านมา

      Yes please, this

  • @jahanson
    @jahanson 17 วันที่ผ่านมา

    Been waiting for something like this, thanks!

  • @luh034
    @luh034 12 วันที่ผ่านมา +1

    I saw you're video on Nixvim, which is the reason I started using it. It's also a neat way of configuring Neovim, but after now trying out NVF, I am definitely switching.
    As I said, Nixvim is still quite good, but it does feel less thought-out and organized than NVF. That in addition to lazy loading and plugin compatibility, makes NVF a clear winner in my book. To Nixvim's credit, I think I recall them working on adding Lazy loading, but it's not there yet. And if you're not too picky about you're Neovim setup, Nixvim offers a LOT of integrated plugins, making it really easy and fast to set up. You can't really go wrong with either.

    • @vimjoyer
      @vimjoyer  12 วันที่ผ่านมา +1

      Facts

  • @emersonzapata1611
    @emersonzapata1611 17 วันที่ผ่านมา +1

    Pretty Nice ✨️
    Today I'm starting to migrate my nvim lua configuration to this approach 😎✨️

  • @ggorg0
    @ggorg0 17 วันที่ผ่านมา +3

    I recently switched from neovim to vscode, mainly because of some problems I've been having with NixVim and some VSCode-exclusive plugins I had to use. Will reconsider switching to nvim once NVF becomes a bit more mature and has all the plugins I need!

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +1

      Nice

    • @Omaaar-e7o
      @Omaaar-e7o 17 วันที่ผ่านมา

      it doesn't need to adopt all your fav plugins just load custom ones, I already made it complete for my use :)

  • @ZiggleFingers
    @ZiggleFingers 17 วันที่ผ่านมา +5

    tell me more about this cursor move animation thing.

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +7

      It's a new kitty feature.
      programs.kitty.settings.cursor_trail = 3; option in home-manager

    • @ZiggleFingers
      @ZiggleFingers 17 วันที่ผ่านมา

      smear-cursor?

  • @Gary-mq2ci
    @Gary-mq2ci 17 วันที่ผ่านมา +3

    In the NVF documentations it states: 'Not comfortable with a full-nix config or want to bring your Lua config? You can do just that, no unnecessary restrictions.', and yet I don't see any reference in the manual on how to achieve that.
    Do you know if that's achievable or are the devs planning to implement it in the future ?
    I'm interested in bringing my Lua config as standalone lua files and just make nvf reference it via nix path.

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +3

      You can use
      vim.extraLuaFiles
      vim.luaConfigPre
      vim.luaConfigPost
      etc

    • @ImperiumLibertas
      @ImperiumLibertas 16 วันที่ผ่านมา +1

      I'd definitely prefer an incremental approach to preserve my current config. I hardly need my nvim config to be declarative but installations absolutely should be. Right now I take in my dotfiles as a flake and bind it using home-manager which allows me to keep the original format of my configs.
      I absolutely could not migrate my entire config in one go without a massive lift which would be majorly disruptive.

  • @bastiana3611
    @bastiana3611 17 วันที่ผ่านมา +7

    I think I'll stick to NixVim for right now, I don't feel like migrating again, and I don't see too many benefits over NixVim with NVF to warrant a swap. Good video! :) What about you?

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +10

      I'll decide during next neovim rewriting ritual :D

  • @levoganisian5852
    @levoganisian5852 17 วันที่ผ่านมา +6

    Omg! Its the coolest nix video again! 🤩
    Btw what terminal are you using with this beautiful cursor/carriage animation?

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +3

      It's kitty with a new trail feature

  • @lordkekz4
    @lordkekz4 15 วันที่ผ่านมา +2

    This looks good.. but so does Nixvim. I'm not sure this solves any of the problems I have with Nixvim (though I haven't gone into deep customization so far). And I've seen others mentioning nixCats and such. I'd really love to see a comparison of these different approaches and what their benefits / drawbacks are! How is NVF's architecture different or better than Nixvim's or nixCats or...?

  • @Jheickson_Felipe
    @Jheickson_Felipe 17 วันที่ผ่านมา

    I was just watching your previous Neovim videos and then got the discord notification
    This couldn't be more perfecly timed

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      nice

  • @asahfikir
    @asahfikir 17 วันที่ผ่านมา +1

    Please do also make a video about nixcats so I can compare that with this one

  • @spfab3429
    @spfab3429 17 วันที่ผ่านมา

    Honestly, that seems pretty cool. I don't really care much about configuring neovim anymore or keeping my config up to date, since I mainly use emacs right now, so this could eliminate a lot of hassle easily and get me a "good-enough" neovim setup quickly.
    (BTW does something similar exist for emacs?)

  • @aa898246
    @aa898246 12 วันที่ผ่านมา

    would you go over snowfall lib? it is very nice

    • @vimjoyer
      @vimjoyer  12 วันที่ผ่านมา +1

      maybe

    • @aa898246
      @aa898246 10 วันที่ผ่านมา +1

      @@vimjoyer 😘

  • @VSurya-vt4nd
    @VSurya-vt4nd 17 วันที่ผ่านมา

    I was literally thinking of migrating from Lua to Nix tomorrow, as I had been waiting for the lazy feature to mature a bit. I came here for the nixvim framework, and lo and behold, a new one is already out. Should I wait a bit more for both of them to mature a bit more and then decide which one to pick?

    • @RedbeardyMcGee
      @RedbeardyMcGee 17 วันที่ผ่านมา +2

      best advice is to never leave the lua behind. use something like nixCats so you can manage packages, plugins and other dependencies with nix (and pin them to specific commits!) but write your configuration in pure Lua. Keep the Lua. Use the Lua. Discarding the Lua will make your experience worse.
      But also just whatever works for you homie. I found that wrapping programming languages inside nix is a fool's errand -- stick to nix for config formats, not languages.

    • @VSurya-vt4nd
      @VSurya-vt4nd 17 วันที่ผ่านมา

      @@RedbeardyMcGee I can fully understand where you are coming from. Lua is already used for configuring the neovim and using nix to configure Lua to configure neovim just seems bit silly... But nix also has a lot of advantages as well, when writing Lua code I need to break down complex function to smaller but more manageable ones, which inevitably reduces performance, but using nix I dont need to bother with that, the final Lua code can be as complex as it need to be as I only need to bother with nix and using nix I can batter integrate neovim with the system like using sops for secret management

    • @RedbeardyMcGee
      @RedbeardyMcGee 16 วันที่ผ่านมา +2

      @@VSurya-vt4nd I think your issue is not the tools, but the application of those tools. You probably could get better results if you learn lua more thoroughly. Plus nixCats can integrate with the rest of the nix ecosystem just fine (if not better).
      Anyway, good luck

  • @Bubuntux
    @Bubuntux 16 วันที่ผ่านมา

    this is great, is there something like it for desktop environments?

    • @vimjoyer
      @vimjoyer  16 วันที่ผ่านมา

      There's plasma manager for kde

  • @ag1015
    @ag1015 17 วันที่ผ่านมา +1

    hell yeah

  • @moutyum
    @moutyum 17 วันที่ผ่านมา

    it's really cool for neovim newcomers. but there should be a big warn sign. everything will be great if you requirements are covered by framework. but if not, you will end up in a situation when you need to actually learn how to configure nvim in lua in order to package the missing parts. boom and now you know how to achieve the same result in lua instead of nix. and new question arise: why do you need two languages for the same purpose when the later will be translated to the first? lua configuration also could be modular and extensible.

  • @kokomema
    @kokomema 17 วันที่ผ่านมา

    Omg new ribbon text animation 🎉

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      yeah

  • @tommy.3377
    @tommy.3377 17 วันที่ผ่านมา

    Ah Mr. Vimjoyer! Assalam-0-Alaikum ! =)
    I wanted to ask you that how did you set up your cursor to look so cool?
    I also want that type of effect on my cursor, can you tell me how ? :")

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      It's a new feature in kitty terminal

  • @NestorManriqueCruz
    @NestorManriqueCruz 17 วันที่ผ่านมา

    What do you use to move the cursor like that 😮

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +2

      A new feature in kitty terminal

  • @prashanthshetty8337
    @prashanthshetty8337 17 วันที่ผ่านมา

    how hard it is to clone ur repo to a new setup?

    • @Omaaar-e7o
      @Omaaar-e7o 16 วันที่ผ่านมา

      @@prashanthshetty8337 the point is to configure neovim with nix language

  • @2Kaleb
    @2Kaleb 17 วันที่ผ่านมา +1

    So what's the difference to nixvim?

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +1

      The way options are structured and configuration is extended is very different, but in the end the result is very similar

    • @drishalballaney
      @drishalballaney 17 วันที่ผ่านมา

      I think nixvim would have more packages and options for now right ?

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +1

      yes, nvf is pretty new

    • @Omaaar-e7o
      @Omaaar-e7o 17 วันที่ผ่านมา

      ​@@drishalballaneynothing stops you from loading custom plugins :3

    • @mars_0008
      @mars_0008 17 วันที่ผ่านมา

      Isn't the big advantage that nvf supports lazy loading but nixvim doesn't?

  • @Julien-rc1bi
    @Julien-rc1bi 17 วันที่ผ่านมา

    It's interesting, thanks for the video. I'm using Nixvim but I think nvf shares the same drawback as Nixvim: it's a pain to iterate over your config, like tweaking the options of a plugin or other part, you have to wait for it to rebuild the whole thing, even with cache, it takes a minute or two. Compared to the vanilla nvim, where all it takes is to restart nvim. It would be nice if you could make a video about nixcats or edenVim as they are yet another alternative to use nvim with nix but focus more on configuration via lua.

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      True

    • @jaimekurzweg-ne4gc
      @jaimekurzweg-ne4gc 17 วันที่ผ่านมา +1

      If you run nixvim as a standalone flake, all you have to do is run "nix build" and "nix run" to iterate. Then you can update your configuration once everything works.

    • @Julien-rc1bi
      @Julien-rc1bi 17 วันที่ผ่านมา

      @ I know that's what I'm doing already. But even as a standalone version, running "nix run ." takes a minute or two to rebuild. That's quite frustrating when you want to try out plugins options.

  • @qwfp
    @qwfp 17 วันที่ผ่านมา +3

    I just finished moving from normal neovim config to nixvim. Now it's time to move again? 😔

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      Only one way to find out

    • @hadockzin
      @hadockzin 17 วันที่ผ่านมา +2

      I'm my opinion, no, if you wanna configure neovim with nix, nixvim is still the best way to do it. Specially because of what nixvim in the backend moving to a RFC-042 approach with freeform settings, most plugins are future-proof, if it happens that options aren't updated

  • @moutyum
    @moutyum 17 วันที่ผ่านมา +1

    0 days since new framework for defining nvim config under NixOS has been promoted

  • @psychoedge5509
    @psychoedge5509 16 วันที่ผ่านมา

    Un saludo a la chaviza

  • @DreamsAPI
    @DreamsAPI 7 วันที่ผ่านมา +1

    NVF > NixVim for me. Both are great projects but so far I prefer NVF

  • @winder2412
    @winder2412 17 วันที่ผ่านมา +1

    not gonna lie, raf is a god in nix

  • @blank6393
    @blank6393 17 วันที่ผ่านมา +1

    Rip my nixvim setup

  • @Nathan_Nino
    @Nathan_Nino 17 วันที่ผ่านมา

    But I just followed your tutorial on nixvim yesterday

  • @Qohist
    @Qohist 17 วันที่ผ่านมา

    Or use God damn Helix and never ever worry about configuring using nvf or nixvim

  • @iblamefps
    @iblamefps 16 วันที่ผ่านมา

    rip my nixvim

  • @SomeEmptyBox
    @SomeEmptyBox 17 วันที่ผ่านมา +1

    shelfware spotted

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      real

  • @bastiana3611
    @bastiana3611 17 วันที่ผ่านมา

    Damn bro, you're built!

  • @danko95bgd
    @danko95bgd 17 วันที่ผ่านมา +1

    These nix configs are worse than using an ORM.
    There are million programs, who thought it would be a good idea for every pkg maintainer to add another cfg abstraction. It makes no sense.

  • @pantium98
    @pantium98 17 วันที่ผ่านมา

    It looks cool, but since Nix doesn't support Windows I can't use it. I'll stick with rocks and Lazy

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา

      Yeah, only in WSL, sadly

  • @karthickb1973
    @karthickb1973 17 วันที่ผ่านมา

    got fed up with nix just because i cant have lazy nvim running with my favourite plugins

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +3

      Pretty sure that lazy nvim works on NixOS just like on any other distro

    • @RedbeardyMcGee
      @RedbeardyMcGee 17 วันที่ผ่านมา +1

      @@vimjoyer mason does not, however, which is like 90% of the magic in lazy.nvim

    • @karthickb1973
      @karthickb1973 17 วันที่ผ่านมา

      @@RedbeardyMcGee btw does mason work with this

    • @RedbeardyMcGee
      @RedbeardyMcGee 16 วันที่ผ่านมา

      @@karthickb1973 there have been some recent advancements to support mason better, but plain lazy.nvim and plain mason will not work as advertised unless you have a wrapper. nixCats, kickstart-nix and nvf all offer that wrapper, I think.

  • @Pierre-zh3ed
    @Pierre-zh3ed 16 วันที่ผ่านมา

    But I use Helix.

  • @stoicfloor
    @stoicfloor 17 วันที่ผ่านมา

    I'm just happy with Nixvim for 2 days. why you do dis tho brother

  • @Soliprem
    @Soliprem 17 วันที่ผ่านมา

    nixvim getting dethroned

  • @linkarzu
    @linkarzu 17 วันที่ผ่านมา

    I'm scared of nix 😢

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +1

      Don't be scared, if you have any questions you can ask on our discord server

    • @linkarzu
      @linkarzu 17 วันที่ผ่านมา

      @@vimjoyer appreciate that! When I try nix. I know where to look

    • @kexec.
      @kexec. 17 วันที่ผ่านมา

      While I'm using Nix, I've noticed that the toxicity in both the Hyprland Nix channel and the unofficial NixOS Discord server is quite overwhelming. I'm not very familiar with the Vimjoyer server, but if the same users are active there, I have my doubts about the environment. I think it's best to stick to the official Matrix server, as they seem to implement some moderation.

  • @maxarendorff6521
    @maxarendorff6521 17 วันที่ผ่านมา +1

    Just switch to Helix lol.

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +1

      Helix is awesome too

  • @HirschyKiss
    @HirschyKiss 17 วันที่ผ่านมา +4

    Would love to see a guide for deploy-rs. please!

    • @vimjoyer
      @vimjoyer  17 วันที่ผ่านมา +1

      Yeah, it's coming

  • @angusbruce4963
    @angusbruce4963 14 วันที่ผ่านมา +2

    can you please redo some of your older videos like how to set up hyprland alot has changed i needed to stop using nixos for uni and i wanted to come back but everything has changed. its 10x harder to get back into

    • @vimjoyer
      @vimjoyer  14 วันที่ผ่านมา

      I definitely will

    • @angusbruce4963
      @angusbruce4963 14 วันที่ผ่านมา

      @@vimjoyer cheers man, been distro hopping like crazy trying to set up nixos again but the starter template mistro made is also out of date so trying my best to build everything from scratch.

  • @RedbeardyMcGee
    @RedbeardyMcGee 17 วันที่ผ่านมา +4

    I prefer nixCats.

    • @dustee2680
      @dustee2680 17 วันที่ผ่านมา

      Same, i feel like abstracting lua away is not worth it in case of Neovim. You trade away too much for convenience. Nixcats uses nix for fetching plugins, lets me configure multiple neovim packages in lua then bring them up anywhere by using `nix run gitrepo` i think it is the golden middleground of nix usage in the case of neovim.

    • @snickersanyone
      @snickersanyone 17 วันที่ผ่านมา +3

      Was gonna say, imo nixCats is the best approach. Nix to manage packages, lua for the config, packer as a fallback on systems without Nix.

  • @leonlee9518
    @leonlee9518 17 วันที่ผ่านมา

    I''m just conplete my lazy.nvim , then i see you this video .