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

Can't open template file. #157

Open
superhxl opened this issue Nov 29, 2022 · 4 comments
Open

Can't open template file. #157

superhxl opened this issue Nov 29, 2022 · 4 comments

Comments

@superhxl
Copy link

Neovim, newly install the plugin with packer. New a python file, error appears:
bug

I think the path is error, should be "vim-template\templates=template=.py", but don't know how to fix it.

@Konfekt
Copy link
Contributor

Konfekt commented Oct 10, 2024

I think in the code there's / that does not get correctly interpreted by Neovim in Windows. Does the same error occur in Vim?

@Konfekt
Copy link
Contributor

Konfekt commented Oct 10, 2024

Indeed, the error is in

\. s:default_template_dir . "/" . g:templates_global_name_prefix . "* "

@Konfekt
Copy link
Contributor

Konfekt commented Oct 10, 2024

Replacing it with "" should solve the issue.

@Konfekt
Copy link
Contributor

Konfekt commented Oct 24, 2024

@superhxl Did this solve your issue? I wonder whether "\" should rather be '\'

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