diff --git a/nixos/home-manager/programs/vim.nix b/nixos/home-manager/programs/vim.nix index 33439dc3..83b85c3e 100644 --- a/nixos/home-manager/programs/vim.nix +++ b/nixos/home-manager/programs/vim.nix @@ -1,15 +1,15 @@ { config, pkgs, lib, inputs, system, ... }: let + unstablePackages = inputs.nixpkgs-nixos-unstable.legacyPackages."${system}"; nil = inputs.nil.packages."${system}".default; - cocPackage = - inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".vimPlugins.coc-nvim; + cocPackage = unstablePackages.vimPlugins.coc-nvim; + nvimPackage = unstablePackages.neovim-unwrapped; in { home.file.".vimrc".source = ../../../.vimrc; home.packages = with pkgs; [ ripgrep ]; programs.neovim = { enable = true; - package = - inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".neovim-unwrapped; + package = nvimPackage; coc = { enable = true; package = cocPackage;