nvimdev / template.nvim

Quickly insert templates into file
MIT License
198 stars 20 forks source link

How to create Project template #50

Open CRAG666 opened 6 months ago

CRAG666 commented 6 months ago

How to create a template for a project

mizuirorivi commented 3 weeks ago

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

mizuirorivi commented 3 weeks ago

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

CRAG666 commented 3 weeks ago

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

mizuirorivi commented 1 week ago

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 commented 1 week ago

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?