https://github.com/NixNeovim/NixNeovim

I’m getting back into my setup after dualbooting and not touching it for a while. Flakes, home-manager, all that jazz. I was in the middle of messing around with my neovim config, bouncing between nixvim and nixneovim. Can’t really remember why I was landing on nixneovim, but I think it had to do with having more 1-to-1 vim options through nix and more available plugins.

Part of this post is just to see what everyone’s using, but I also can’t copy to the system clipboard for the life of me! No ctrl-shift-v or anything. Oddly enough, ctrl-click-drag will copy a cut-off box of text. In nixneovim there’s an option for clipboard, but that’s just a string like ‘unnamed’ or ‘unnamedplus’, straight from the vim options. Nixvim has the option abstracted in a way that has the register and a provider for the functionality like wl-copy. I don’t remember it not working with nixneovim before. That was months ago, though. Hoping someone would have an insight as I’ve been too deep in the weeds.

Edit: sooooo I just needed xclip in home.packages. I had tried installing it in a nix shell, but maybe that wasn’t the right way to test. Doesn’t seem to work with wl-clipboard, but I think neovim looks for xclip by default and nixneovim doesn’t seem to have a way to give a different provider.

But still, how’s everyone doing their neovim shenanigans?

  • letThemPlay@lemmy.one
    link
    fedilink
    English
    arrow-up
    2
    ·
    20 days ago

    I’m currently using nixvim, or at least attempting to, I was previously just using lazygit outside my nix config, but now I’m trying to very slowly create a config I like, but its very slow, and I’ve got some weird padding issues with neovim and alacritty that I’m trying to solve first.

    I hadn’t heard of nixneovim, I think once I’m in a settled state I’ll take a look at it, I just don’t want to be pilling more change on top of an unstable base at the moment.

    P.s. I probably should have stated I’m fairy new to neovim in general, so still learning which plugins I like.

    • degenOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 days ago

      Nixvim is great too. Nixneovim was originally forked from it, apparently. And now that I’ve been thinking about it, I’m pretty sure the reason I ended up using nixneovim was indeed the way it handles direct vim options, and maybe less need for extraConfig? I’ve slowly been configuring more as well and didn’t want to be confused learning vim config and having to figure out how to convey that in nix.

      So that’s a thought if you find yourself having the same trouble! It’s not just a lot of config, but layers and layers and layers lol. Looking at you, lua in string literals.

    • degenOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 days ago

      Oh, by the way, is the padding issue due to the window size? When I run on tiling compositors, the full window is uneven with respect to character width so there’s space on the bottom and side. I’m not sure if there’s a way to fix it running in the terminal other than resizing so it’s even. Don’t know if you’re tiling or not.

      • letThemPlay@lemmy.one
        link
        fedilink
        English
        arrow-up
        1
        ·
        19 days ago

        Yes I’m using Sway; I haven’t looked too much into it yet, but I think its more my setting in alacritty itself, that I need to change when opening neovim. But it’s low down on my list to look at.

  • rutrum@lm.paradisus.day
    link
    fedilink
    English
    arrow-up
    1
    ·
    20 days ago

    I am also using nixvim. Didn’t know about this fork. I think I like it? It beats manually writing setup configs. But Im not a vim superuser by any means, so I’m sure nixneovim would be equally useful to me.

    • degenOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 days ago

      Oh, for sure. It’s really just preference that I like it. Really great to have options, though.