From 02b830b157ef232ff65b1363687c64b5dbc1d762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Wed, 10 Apr 2024 19:07:26 +0200 Subject: [PATCH] feat(nvim): Package and use vim-jjdescription --- nvim/nixvim.nix | 10 +++++++++- nvim/vim-jjdescription.nix | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 nvim/vim-jjdescription.nix diff --git a/nvim/nixvim.nix b/nvim/nixvim.nix index f4ef28e..d5dd641 100644 --- a/nvim/nixvim.nix +++ b/nvim/nixvim.nix @@ -52,7 +52,15 @@ in plugins = import ./plugins.nix { inherit lib; }; keymaps = import ./mappings.nix; inherit (import ./augroups.nix) autoGroups autoCmd; - extraPlugins = with pkgs.vimPlugins; [ nvim-web-devicons ]; + extraPlugins = + let + jjdescription = pkgs.callPackage ./vim-jjdescription.nix { }; + in + with pkgs.vimPlugins; + [ + nvim-web-devicons + jjdescription + ]; # Formatting extraPackages = with pkgs; [ stylua diff --git a/nvim/vim-jjdescription.nix b/nvim/vim-jjdescription.nix new file mode 100644 index 0000000..1c69502 --- /dev/null +++ b/nvim/vim-jjdescription.nix @@ -0,0 +1,10 @@ +{ vimUtils, fetchFromGitHub }: +vimUtils.buildVimPlugin { + name = "jjdescription"; + src = fetchFromGitHub { + owner = "avm99963"; + repo = "vim-jjdescription"; + rev = "c9bf9f849ead3961ae38ab33f68306996e64c6e8"; + hash = "sha256-qnZFuXbzpm2GN/+CfksFfW2O+qTosUZcUagqCTzmtWo="; + }; +}