NVF | The Superior Way To Configure Neovim With Nix

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

КОМЕНТАРІ • 125

  •  29 днів тому +83

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

    • @winder2412
      @winder2412 28 днів тому +3

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

    • @randomexplosion6527
      @randomexplosion6527 28 днів тому

      Rip

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj 25 днів тому

      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 18 днів тому

      us moment

  • @MD.TaufikKhan-g3c
    @MD.TaufikKhan-g3c 29 днів тому +37

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

  • @ErikVanKelst
    @ErikVanKelst 18 днів тому +3

    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!

  • @bluepapaya77
    @bluepapaya77 20 днів тому +3

    Perfect video for me to see at this moment.

  • @santiagowu5365
    @santiagowu5365 29 днів тому +9

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

  • @CountDookuful
    @CountDookuful 28 днів тому +11

    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 28 днів тому

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

    • @NeoAemaeth
      @NeoAemaeth 22 дні тому

      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 20 днів тому

      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 20 днів тому +2

      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 14 днів тому

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

  • @JohnMichaelVoudouris
    @JohnMichaelVoudouris 29 днів тому +7

    Hooray! More quality NixOS information/education!!

  • @caffeine01
    @caffeine01 29 днів тому +2

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

  • @BeepDog
    @BeepDog 27 днів тому +1

    I love the addition of the kitty cursor tail :D

  • @kalyanoliveira3224
    @kalyanoliveira3224 28 днів тому +1

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

  • @jacekpoz2203
    @jacekpoz2203 29 днів тому +30

    raf is the goat

    • @Omaaar-e7o
      @Omaaar-e7o 29 днів тому +2

      raf is woke

    • @min3craftpolska514
      @min3craftpolska514 29 днів тому +4

      this comment has been sponsored by raf

    • @aimpizza6823
      @aimpizza6823 14 днів тому

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

  • @PanTek-r8g
    @PanTek-r8g 10 днів тому

    Great to see NVF getting some love. 1. Can we see you config files VJ? 2. NixCats was too complicated for me, but would be interesting to see your thoughts on it

  • @Dwarf_Software
    @Dwarf_Software 18 днів тому +4

    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!

  • @ggorg0
    @ggorg0 29 днів тому +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  29 днів тому +1

      Nice

    • @Omaaar-e7o
      @Omaaar-e7o 29 днів тому +1

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

  • @emersonzapata1611
    @emersonzapata1611 28 днів тому +1

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

  • @luh034
    @luh034 23 дні тому +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.

  • @jahanson
    @jahanson 28 днів тому

    Been waiting for something like this, thanks!

  • @Jheickson_Felipe
    @Jheickson_Felipe 29 днів тому

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

  • @bastiana3611
    @bastiana3611 29 днів тому +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  29 днів тому +10

      I'll decide during next neovim rewriting ritual :D

  • @levoganisian5852
    @levoganisian5852 29 днів тому +6

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

    • @vimjoyer
      @vimjoyer  29 днів тому +3

      It's kitty with a new trail feature

  • @lordkekz4
    @lordkekz4 26 днів тому +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...?

  • @ZiggleFingers
    @ZiggleFingers 29 днів тому +5

    tell me more about this cursor move animation thing.

    • @vimjoyer
      @vimjoyer  29 днів тому +7

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

    • @ZiggleFingers
      @ZiggleFingers 29 днів тому

      smear-cursor?

  • @Gary-mq2ci
    @Gary-mq2ci 29 днів тому +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  29 днів тому +3

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

    • @ImperiumLibertas
      @ImperiumLibertas 27 днів тому +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.

  • @ag1015
    @ag1015 29 днів тому +1

    hell yeah

  • @asahfikir
    @asahfikir 28 днів тому +1

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

  • @kokomema
    @kokomema 29 днів тому

    Omg new ribbon text animation 🎉

  • @DreamsAPI
    @DreamsAPI 18 днів тому +2

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

  • @spfab3429
    @spfab3429 29 днів тому

    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?)

  • @moutyum
    @moutyum 28 днів тому

    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.

  • @Julien-rc1bi
    @Julien-rc1bi 29 днів тому

    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  29 днів тому

      True

    • @jaimekurzweg-ne4gc
      @jaimekurzweg-ne4gc 29 днів тому +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 29 днів тому

      @ 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.

  • @psychoedge5509
    @psychoedge5509 27 днів тому

    Un saludo a la chaviza

  • @Bubuntux
    @Bubuntux 27 днів тому

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

    • @vimjoyer
      @vimjoyer  27 днів тому

      There's plasma manager for kde

  • @aa898246
    @aa898246 23 дні тому

    would you go over snowfall lib? it is very nice

  • @moutyum
    @moutyum 28 днів тому +1

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

  • @VSurya-vt4nd
    @VSurya-vt4nd 29 днів тому

    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 29 днів тому +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 28 днів тому

      @@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 27 днів тому +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

  • @s.i.n4985
    @s.i.n4985 12 годин тому +2

    that is cool... but i like to use lunarvim :D

  • @winder2412
    @winder2412 28 днів тому +1

    not gonna lie, raf is a god in nix

  • @tommy.3377
    @tommy.3377 28 днів тому

    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  28 днів тому

      It's a new feature in kitty terminal

  • @NestorManriqueCruz
    @NestorManriqueCruz 29 днів тому

    What do you use to move the cursor like that 😮

    • @vimjoyer
      @vimjoyer  29 днів тому +3

      A new feature in kitty terminal

  • @prashanthshetty8337
    @prashanthshetty8337 28 днів тому

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

    • @Omaaar-e7o
      @Omaaar-e7o 28 днів тому

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

  • @Nathan_Nino
    @Nathan_Nino 29 днів тому

    But I just followed your tutorial on nixvim yesterday

  • @2Kaleb
    @2Kaleb 29 днів тому +1

    So what's the difference to nixvim?

    • @vimjoyer
      @vimjoyer  29 днів тому +1

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

    • @drishalballaney
      @drishalballaney 29 днів тому

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

    • @vimjoyer
      @vimjoyer  29 днів тому +1

      yes, nvf is pretty new

    • @Omaaar-e7o
      @Omaaar-e7o 29 днів тому +1

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

    • @mars_0008
      @mars_0008 28 днів тому

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

  • @blank6393
    @blank6393 29 днів тому +1

    Rip my nixvim setup

  • @iblamefps
    @iblamefps 27 днів тому

    rip my nixvim

  • @bastiana3611
    @bastiana3611 29 днів тому

    Damn bro, you're built!

  • @Qohist
    @Qohist 29 днів тому

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

  • @SomeEmptyBox
    @SomeEmptyBox 29 днів тому +1

    shelfware spotted

  • @qwfp
    @qwfp 29 днів тому +3

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

    • @vimjoyer
      @vimjoyer  29 днів тому

      Only one way to find out

    • @hadockzin
      @hadockzin 29 днів тому +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

  • @stoicfloor
    @stoicfloor 28 днів тому

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

  • @pantium98
    @pantium98 28 днів тому

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

    • @vimjoyer
      @vimjoyer  28 днів тому

      Yeah, only in WSL, sadly

  • @Pierre-zh3ed
    @Pierre-zh3ed 27 днів тому

    But I use Helix.

  • @danko95bgd
    @danko95bgd 29 днів тому +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.

  • @karthickb1973
    @karthickb1973 29 днів тому

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

    • @vimjoyer
      @vimjoyer  29 днів тому +3

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

    • @RedbeardyMcGee
      @RedbeardyMcGee 29 днів тому +1

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

    • @karthickb1973
      @karthickb1973 29 днів тому

      @@RedbeardyMcGee btw does mason work with this

    • @RedbeardyMcGee
      @RedbeardyMcGee 27 днів тому

      @@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.

  • @HirschyKiss
    @HirschyKiss 29 днів тому +4

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

    • @vimjoyer
      @vimjoyer  29 днів тому +1

      Yeah, it's coming

  • @Soliprem
    @Soliprem 29 днів тому

    nixvim getting dethroned

  • @linkarzu
    @linkarzu 29 днів тому

    I'm scared of nix 😢

    • @vimjoyer
      @vimjoyer  29 днів тому +1

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

    • @linkarzu
      @linkarzu 29 днів тому

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

    • @kexec.
      @kexec. 28 днів тому

      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 29 днів тому +1

    Just switch to Helix lol.

    • @vimjoyer
      @vimjoyer  29 днів тому +1

      Helix is awesome too

  • @RedbeardyMcGee
    @RedbeardyMcGee 29 днів тому +4

    I prefer nixCats.

    • @dustee2680
      @dustee2680 28 днів тому

      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 28 днів тому +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.

  • @angusbruce4963
    @angusbruce4963 26 днів тому +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  26 днів тому

      I definitely will

    • @angusbruce4963
      @angusbruce4963 26 днів тому

      @@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.

  • @leonlee9518
    @leonlee9518 28 днів тому

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