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.)
there are a few options for configuring neovim in Nix. My favorite is NixVim. my config: https://codeberg.org/jevans/nix-config/src/branch/main/homeManagerModules/cli-applications/neovim/default.nix
That looks very interesting, thank you!
open Konsole, type
vi
,enter
/return
Just add
pkgs.helix
to your systemPackages.Thanks, I got it done. :)
Evil‐helix will give you keybinding parity with vim. Regular helix does not
You need to add the package for your preferred editor to your configuration.nix and rebuild your system
Got it, so in babysteps it was:
- As root, open
/etc/nixox/configuration.nix
using kate or nano. - Uncomment or add the line vim or helix within the block
environment.systemPackages = with pkgs; [... ...];
. - In a Terminal, run
nixos-rebuild switch
.
Alright, first steps taken. Thanks! :)
No problem! In case you havent found it already, the packages and options are available to search here: https://search.nixos.org/packages
- As root, open
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