-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat(config): specify filetype in filetype_details #43
Comments
I see the value of this But I think it quite a powerful user stuff, and would still remind simple config options like I consider it as a more powerful counterpart of |
By the way, I guess Also, in this case, I don't want to sound rude, but the default way of specifying default content is not user friendly enough. I think not that hard to make it looks something like that filetype_details = {
lua = {
content ={
text = [[default content blah blah blah
new line ${cursor} fdsjjdf
asdfjlksdfjl]],
insert=true
}
}
} |
No worry, yeah, it’s better to make it a multi line string |
after creating file do
:set filetype=filetype_details[choice]
and ...Draft
Then, the function that creates a scratch buffer can appear in this way.
Benefit
Replace chore:
requireDir
,filename
andwin_cwd
, and give more power to specify what file type you need and how it should look.Examples
If you make notes, then you may want to create scratch note, you know where them live, so you can
The text was updated successfully, but these errors were encountered: