organization because it was terrible before and hard to maintain. Now it should be much easier and there is still of a design decisions to figure out
32 lines
338 B
Lua
32 lines
338 B
Lua
local M = {}
|
|
|
|
---@param opts table
|
|
M.template = function(opts)
|
|
local base = [=[
|
|
.DS_Store
|
|
|
|
.vscode/
|
|
.idea/
|
|
|
|
.env
|
|
.env.*
|
|
|
|
]=]
|
|
local lang_block = {
|
|
python = [=[
|
|
__pycache__/
|
|
build/
|
|
dist/
|
|
.venv/
|
|
env/
|
|
venv/
|
|
.pytest_cache/
|
|
]=],
|
|
}
|
|
|
|
local extra = (opts and opts and lang_block[opts.lang]) or ""
|
|
return base .. extra
|
|
end
|
|
|
|
return M
|