Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create Project template #50

Open
CRAG666 opened this issue Apr 18, 2024 · 5 comments
Open

How to create Project template #50

CRAG666 opened this issue Apr 18, 2024 · 5 comments

Comments

@CRAG666
Copy link

CRAG666 commented Apr 18, 2024

How to create a template for a project

@mizuirorivi
Copy link

how do you manage project?
for example, looking at .git/config and extract repository name?
or set up projectname with "string"?

@mizuirorivi
Copy link

If a template can be set for each project, how would you like it set?

@CRAG666
Copy link
Author

CRAG666 commented Oct 22, 2024

Only the entire structure of a project is created when it is executed, for example: TemplateProject .netApi

@mizuirorivi
Copy link

I made it like this, what do you think?
'https://github.com/mizuirorivi/template.nvim'
you must install 'notjedi/nvim-rooter.lua' in order to use this plugin
Because I used this plugin to recognize the project root
I can't decide if I can use another plugin or if it should be implemented internally
Since we are using telescope, we have decided that we can use other plugins as dependent libraries

@mizuirorivi
Copy link

mizuirorivi commented Oct 31, 2024

I wrote how to set it up in 'doc/'.
Configuration.

vim.g.is_project_template = true

If you set vim.g.is_project_template = true
This will create a directory called '.template' directly under the project root, which will be loaded
This is exactly the same as the existing usage.
The template will be merged with the existing template.
Want to display only the templates for your project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants