template.nvim icon indicating copy to clipboard operation
template.nvim copied to clipboard

How to create Project template

Open CRAG666 opened this issue 1 year ago • 7 comments

How to create a template for a project

CRAG666 avatar Apr 18 '24 19:04 CRAG666

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

mizuirorivi avatar Oct 19 '24 06:10 mizuirorivi

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

mizuirorivi avatar Oct 19 '24 06:10 mizuirorivi

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

CRAG666 avatar Oct 22 '24 21:10 CRAG666

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 avatar Oct 31 '24 08:10 mizuirorivi

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?

mizuirorivi avatar Oct 31 '24 09:10 mizuirorivi

@mizuirorivi Pleace send a example

CRAG666 avatar Jul 24 '25 04:07 CRAG666

look at doc/

mizuirorivi avatar Oct 18 '25 15:10 mizuirorivi