From 1598e11e63a197da22e0a49db085bd053493d30c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 21 Jul 2022 15:51:18 +0200 Subject: [PATCH] feat(neovim): add lsp-signature-help completion source --- home-manager/neovim/default.nix | 14 ++++++++++++++ home-manager/neovim/nvim-cmp.lua | 1 + 2 files changed, 15 insertions(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index cc4af18..84808a8 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -1,5 +1,18 @@ { config, lib, pkgs, user, ... }: +let + cmp-nvim-lsp-signature-help = pkgs.vimUtils.buildVimPlugin { + name = "cmp-nvim-lsp-signature-help"; + version = "2022-07-21"; + src = pkgs.fetchFromGitHub { + owner = "hrsh7th"; + repo = "cmp-nvim-lsp-signature-help"; + rev = "57c4db7d3a663bd31ef60c4b5ed32683301247e9"; + sha256 = "LKtMrxm9i+yoLYh1NuZsENSScB7MQZrjTFpD9wdpz1M="; + }; + meta.homepage = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"; + }; +in { home.packages = with pkgs; [ xclip @@ -58,6 +71,7 @@ cmp-nvim-lua cmp_luasnip cmp-calc + cmp-nvim-lsp-signature-help # telescope telescope-nvim diff --git a/home-manager/neovim/nvim-cmp.lua b/home-manager/neovim/nvim-cmp.lua index 201a5b6..9661507 100644 --- a/home-manager/neovim/nvim-cmp.lua +++ b/home-manager/neovim/nvim-cmp.lua @@ -16,6 +16,7 @@ cmp.setup({ }, sources = cmp.config.sources({ { name = "nvim_lsp" }, + { name = "nvim_lsp_signature_help" }, { name = "luasnip" }, { name = "path" }, { name = "buffer" },