REFACTOR: Merged templates into a per language file, deleted init.lua as
it was just a middle man and wasnt needed (in fact it is better without it) FT: Changes to python
This commit is contained in:
@@ -2,7 +2,7 @@ local M = {}
|
||||
|
||||
---@param opts table
|
||||
M.template = function(opts)
|
||||
local base = [=[
|
||||
local base = [=[
|
||||
.DS_Store
|
||||
|
||||
.vscode/
|
||||
@@ -12,8 +12,8 @@ M.template = function(opts)
|
||||
.env.*
|
||||
|
||||
]=]
|
||||
local lang_block = {
|
||||
python = [=[
|
||||
local lang_block = {
|
||||
python = [=[
|
||||
__pycache__/
|
||||
build/
|
||||
dist/
|
||||
@@ -22,10 +22,10 @@ env/
|
||||
venv/
|
||||
.pytest_cache/
|
||||
]=],
|
||||
}
|
||||
}
|
||||
|
||||
local extra = (opts and opts and lang_block[opts.lang]) or ""
|
||||
return base .. extra
|
||||
local extra = (opts and opts and lang_block[opts.lang]) or ""
|
||||
return base .. extra
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user