From 1695d02b441576790b9f43bc698b14d4f86248b2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 25 Aug 2025 20:43:48 +0100 Subject: [PATCH] Add a template for generating new PHP files https://shapeshed.com/vim-templates --- modules/nixvim/templates/default.nix | 9 +++++++++ modules/nixvim/templates/php | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 modules/nixvim/templates/default.nix create mode 100644 modules/nixvim/templates/php diff --git a/modules/nixvim/templates/default.nix b/modules/nixvim/templates/default.nix new file mode 100644 index 00000000..753b600a --- /dev/null +++ b/modules/nixvim/templates/default.nix @@ -0,0 +1,9 @@ +{ + flake.modules.nixvim.custom.autoCmd = [ + { + event = "BufNewFile"; + pattern = [ "*.php" ]; + command = "0r ${./php}"; + } + ]; +} diff --git a/modules/nixvim/templates/php b/modules/nixvim/templates/php new file mode 100644 index 00000000..174d7fd7 --- /dev/null +++ b/modules/nixvim/templates/php @@ -0,0 +1,3 @@ +