From d80e2b7018f6dea328cd8b555aa82f26ac613a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 31 Oct 2022 13:49:10 +0000 Subject: [PATCH] use coc nvim from the same nixpkgs version as nvim --- nixos/home-manager/programs/vim.nix | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/nixos/home-manager/programs/vim.nix b/nixos/home-manager/programs/vim.nix index e0b73e1b..33439dc3 100644 --- a/nixos/home-manager/programs/vim.nix +++ b/nixos/home-manager/programs/vim.nix @@ -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 = {