Add a template for generating new PHP files
All checks were successful
/ check (push) Successful in 57s
All checks were successful
/ check (push) Successful in 57s
https://shapeshed.com/vim-templates
This commit is contained in:
parent
bcf3da42cb
commit
1695d02b44
2 changed files with 12 additions and 0 deletions
9
modules/nixvim/templates/default.nix
Normal file
9
modules/nixvim/templates/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
flake.modules.nixvim.custom.autoCmd = [
|
||||
{
|
||||
event = "BufNewFile";
|
||||
pattern = [ "*.php" ];
|
||||
command = "0r ${./php}";
|
||||
}
|
||||
];
|
||||
}
|
3
modules/nixvim/templates/php
Normal file
3
modules/nixvim/templates/php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
Loading…
Add table
Add a link
Reference in a new issue