From df04943b7baa1293e66863f2cdee794a7abcd327 Mon Sep 17 00:00:00 2001 From: mmfallacy <31348500+mmfallacy@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:39:07 +0800 Subject: [PATCH] vimPlugins.live-preview-nvim: init at 2025-08-17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vimPlugins: add live-preview-nvim overrides - Update pkgs/applications/editors/vim/plugins/overrides.nix - chore: fmt Co-authored-by: GaƩtan Lepage <33058747+GaetanLepage@users.noreply.github.com> --- .../editors/vim/plugins/generated.nix | 13 +++++++++++++ .../editors/vim/plugins/overrides.nix | 16 ++++++++++++++++ .../editors/vim/plugins/vim-plugin-names | 1 + 3 files changed, 30 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 58f4d38bf28f..1815d565762d 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -7496,6 +7496,19 @@ final: prev: { meta.hydraPlatforms = [ ]; }; + live-preview-nvim = buildVimPlugin { + pname = "live-preview.nvim"; + version = "2025-08-17"; + src = fetchFromGitHub { + owner = "brianhuster"; + repo = "live-preview.nvim"; + rev = "5890c4f7cb81a432fd5f3b960167757f1b4d4702"; + sha256 = "0gr68xmx9ph74pqnlpbfx9kj5bh7yg3qh0jni98z2nmkzfvg4qcx"; + }; + meta.homepage = "https://github.com/brianhuster/live-preview.nvim/"; + meta.hydraPlatforms = [ ]; + }; + live-rename-nvim = buildVimPlugin { pname = "live-rename.nvim"; version = "2025-06-23"; diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index a319de91ea6c..cea9ccf904a8 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -1794,6 +1794,22 @@ in dependencies = [ self.litee-nvim ]; }; + live-preview-nvim = super.live-preview-nvim.overrideAttrs { + checkInputs = with self; [ + fzf-lua + mini-pick + snacks-nvim + telescope-nvim + ]; + + nvimSkipModules = [ + # Ignore livepreview._spec as it fails nvimRequireCheck. + # This file runs tests on require which unfortunately fails as it attempts to require the base plugin. See https://github.com/brianhuster/live-preview.nvim/blob/5890c4f7cb81a432fd5f3b960167757f1b4d4702/lua/livepreview/_spec.lua#L25 + "livepreview._spec" + ]; + meta.license = lib.licenses.gpl3Only; + }; + lspcontainers-nvim = super.lspcontainers-nvim.overrideAttrs { dependencies = [ self.nvim-lspconfig ]; }; diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index 954c16213677..68358bfffc45 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -575,6 +575,7 @@ https://github.com/ldelossa/litee-filetree.nvim/,, https://github.com/ldelossa/litee-symboltree.nvim/,, https://github.com/ldelossa/litee.nvim/,, https://github.com/smjonas/live-command.nvim/,HEAD, +https://github.com/brianhuster/live-preview.nvim/,HEAD, https://github.com/saecki/live-rename.nvim/,HEAD, https://github.com/azratul/live-share.nvim/,HEAD, https://github.com/ggml-org/llama.vim/,HEAD,