Talk:Neovim: Difference between revisions

From NixOS Wiki
imported>MikulasVanousek
No edit summary
imported>Abhillman
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
I included neovim amongst the packages I install in my NixOS config:
It would be great to have sections for:
 
* how to do this with `home-manager` (already exists)
  { config, pkgs, ... }:
* how to do this with `nix-shell`
 
* how to do this with flakes (e.g. `nix develop`)
  {
    nixpkgs.config.allowUnfree = true;
    system.autoUpgrade.channel = https://nixos.org/channels/nixpkgs-unstable;
 
    environment.systemPackages = with pkgs; [
    neovim
    firefox
    anki
   
    ulauncher
 
    tdesktop
    discord
 
    git
    python
    ruby
 
    neofetch
    starship
    terminus-nerdfont
    xclip
  ];
 
  environment.variables.EDITOR = "nvim";
  }
 
This stalls the nixos.neovim version of the package, which has version 4.4. I need version 5.1, which can be found in nixpkgs.neovim. I can install it with:
  nix-env -iA nixpkgs.neovim
 
Is there a way to install it from my config?

Latest revision as of 21:17, 30 May 2023

It would be great to have sections for:

  • how to do this with `home-manager` (already exists)
  • how to do this with `nix-shell`
  • how to do this with flakes (e.g. `nix develop`)