From 611584a0beb44b7957bfe03a4322bdfb81284426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 27 Sep 2023 10:38:27 +0200 Subject: [PATCH] feat(nvim): add nvim-puppeteer for f-strings --- flake.lock | 17 +++++++++++++++++ flake.nix | 3 +++ modules/programs/nvim/plugins/coding.nix | 4 ++++ overlays/vimPlugins.nix | 6 ++++++ 4 files changed, 30 insertions(+) diff --git a/flake.lock b/flake.lock index a3e2659..0168879 100644 --- a/flake.lock +++ b/flake.lock @@ -863,6 +863,22 @@ "type": "github" } }, + "nvim-puppeteer": { + "flake": false, + "locked": { + "lastModified": 1695758417, + "narHash": "sha256-rkaQUOXxNfkib0kPv+z8ncZiwgSP26+jwNtN9ydcvLQ=", + "owner": "chrisgrieser", + "repo": "nvim-puppeteer", + "rev": "9cd2d2e2630db6377538f5f0dccdea3517db2ce1", + "type": "github" + }, + "original": { + "owner": "chrisgrieser", + "repo": "nvim-puppeteer", + "type": "github" + } + }, "nvim-treesitter": { "flake": false, "locked": { @@ -939,6 +955,7 @@ "nix-lazy-nvim": "nix-lazy-nvim", "nix-super": "nix-super", "nixpkgs": "nixpkgs_7", + "nvim-puppeteer": "nvim-puppeteer", "nvim-treesitter": "nvim-treesitter", "pre-commit-hooks": "pre-commit-hooks", "rofi-wayland": "rofi-wayland", diff --git a/flake.nix b/flake.nix index fb57451..475d0cd 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,9 @@ nix-lazy-nvim.url = "git+https://git.moritzboeh.me/moritz/NixLazy.nvim"; + nvim-puppeteer.flake = false; + nvim-puppeteer.url = "github:chrisgrieser/nvim-puppeteer"; + # Hyprland hypr-contrib.url = "github:hyprwm/contrib"; hyprland.url = "github:hyprwm/Hyprland"; diff --git a/modules/programs/nvim/plugins/coding.nix b/modules/programs/nvim/plugins/coding.nix index ae3d393..fc4d22a 100644 --- a/modules/programs/nvim/plugins/coding.nix +++ b/modules/programs/nvim/plugins/coding.nix @@ -313,5 +313,9 @@ with builtins; ]; opts = { }; } + { + plugin = nvim-puppeteer; + lazy = false; # NOTE: plugin lazy-loads itself. + } ]; } diff --git a/overlays/vimPlugins.nix b/overlays/vimPlugins.nix index 7cafdf5..cc219b9 100644 --- a/overlays/vimPlugins.nix +++ b/overlays/vimPlugins.nix @@ -37,5 +37,11 @@ with lib.my; version = mkVersionInput inputs.nvim-treesitter; src = inputs.nvim-treesitter; }); + + nvim-puppeteer = prev.vimUtils.buildVimPluginFrom2Nix { + pname = "nvim-puppeteer"; + version = mkVersionInput inputs.nvim-puppeteer; + src = inputs.nvim-puppeteer; + }; }; }