use coc nvim from the same nixpkgs version as nvim

This commit is contained in:
Cyryl Płotnicki 2022-10-31 13:49:10 +00:00
parent a84141cf15
commit d80e2b7018

View file

@ -1,5 +1,8 @@
{ config, pkgs, lib, inputs, system, ... }:
let nil = inputs.nil.packages."${system}".default;
let
nil = inputs.nil.packages."${system}".default;
cocPackage =
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".vimPlugins.coc-nvim;
in {
home.file.".vimrc".source = ../../../.vimrc;
home.packages = with pkgs; [ ripgrep ];
@ -9,17 +12,7 @@ in {
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".neovim-unwrapped;
coc = {
enable = true;
package = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "coc.nvim";
version = "v0.0.82";
src = pkgs.fetchFromGitHub {
owner = "neoclide";
repo = "coc.nvim";
rev = "v0.0.82";
sha256 = "sha256-TIkx/Sp9jnRd+3jokab91S5Mb3JV8yyz3wy7+UAd0A0=";
};
meta.homepage = "https://github.com/neoclide/coc.nvim/";
};
package = cocPackage;
settings = {
languageserver = {
nix = {