PYTHON: Project setup fixed and working, just need to add providers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
---@param opts table
|
||||
M.template = function(opts)
|
||||
---@param lang string
|
||||
M.template = function(lang)
|
||||
local base = [=[
|
||||
.DS_Store
|
||||
|
||||
@@ -13,7 +13,7 @@ M.template = function(opts)
|
||||
|
||||
]=]
|
||||
local lang_block = {
|
||||
python = [=[
|
||||
python = vim.trim([=[
|
||||
__pycache__/
|
||||
build/
|
||||
dist/
|
||||
@@ -21,10 +21,10 @@ dist/
|
||||
env/
|
||||
venv/
|
||||
.pytest_cache/
|
||||
]=],
|
||||
]=]),
|
||||
}
|
||||
|
||||
local extra = (opts and opts and lang_block[opts.lang]) or ""
|
||||
local extra = (lang and lang_block[lang]) or ""
|
||||
return base .. extra
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user