Meh I'll figure out submodules later
This commit is contained in:
parent
4ca9d44a90
commit
8cb281f436
352 changed files with 66107 additions and 0 deletions
15
.config/nvim/pack/tree/start/plenary.nvim/scripts/update_vararg.py
Executable file
15
.config/nvim/pack/tree/start/plenary.nvim/scripts/update_vararg.py
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
def generate_file(name, outpath, **kwargs):
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
env = Environment(loader=FileSystemLoader('./vararg'))
|
||||
template = env.get_template(name)
|
||||
path = os.path.join(outpath, name)
|
||||
with open(path, 'w') as fp:
|
||||
fp.write(template.render(kwargs))
|
||||
subprocess.run(["lua-format", "-i", path])
|
||||
|
||||
if __name__ == '__main__':
|
||||
generate_file('rotate.lua', '../lua/plenary/vararg', amount=16)
|
||||
Loading…
Add table
Add a link
Reference in a new issue