From 851ef0ffe1060e7c862a2364355e8470eeda4aed Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 5 Aug 2022 14:25:44 +0200 Subject: [PATCH] feat(neovim): add pre-commit.nvim --- home-manager/neovim/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index f082aa8..41c3f74 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -23,6 +23,16 @@ let }; meta.homepage = "https://git.sr.ht/~whynothugo/lsp_lines.nvim"; }; + pre-commit-nvim = pkgs.vimUtils.buildVimPlugin { + name = "pre-commit.nvim"; + version = "2022-08-05"; + src = pkgs.fetchgit { + url = "https://github.com/Ttibsi/pre-commit.nvim"; + rev = "4a608cef0f0a196fa39cdc60579eb9cf601d21c4"; + sha256 = "Y0biF/yrOX1YYztj8/u0n8zPN4YLGLSQL3vb9I3+3dE="; + }; + meta.homepage = "https://github.com/Ttibsi/pre-commit.nvim"; + }; in { home.packages = with pkgs; [ @@ -71,6 +81,7 @@ in plenary-nvim vim-illuminate registers-nvim + pre-commit-nvim # git gitsigns-nvim @@ -138,3 +149,4 @@ in }; } +