I’m on a fresh installation with KDE. Kate is available, but what’s the best way to get (n)vim up and running, or better yet, Helix? (I’m new to Nix. I do have a good amount of Linux experience though.)

  • priapus@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    You need to add the package for your preferred editor to your configuration.nix and rebuild your system

    • Novocirab@feddit.orgOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

      Got it, so in babysteps it was:

      1. As root, open /etc/nixox/configuration.nix using kate or nano.
      2. Uncomment or add the line vim or helix within the block environment.systemPackages = with pkgs; [... ...];.
      3. In a Terminal, run nixos-rebuild switch.

      Alright, first steps taken. Thanks! :)

  • juipeltje@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 days ago

    I finally decided to cave in and give vim a try recently as well, but quickly ended up using helix instead. Mainly because for most of the IDE type functionality you don’t have to mess around with plugins at all, which i really hated about both vim and neovim. I also really like that all my favorite themes are already built-in. As for getting into it, for helix it can be as simple as adding it to your packages list (or maybe there’s a module to enable it, idk). For the lsp to work you just need to install the language server you need and helix should find it on your path. I recommend just going through the tutor, and after that, just get familiar with it by using it for anything you want to edit, even if it’s just simple config files. I still have a long way to go myself but after just a few days i noticed becoming faster and the motions feeling less clunky. Also don’t worry about memorizing all the commands. Just stick with some basics and as you go you’ll find more commands that you realize are usefull, and build your knowledge up slowly like that.

    Edit: just realized i may have misread and that you were only asking about how to install the nix way, instead of being new to vim/helix 😶 oh well lol