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

cannot work when user use lazy load of plugin manager #7

Open
Freed-Wu opened this issue Jun 21, 2020 · 3 comments
Open

cannot work when user use lazy load of plugin manager #7

Freed-Wu opened this issue Jun 21, 2020 · 3 comments

Comments

@Freed-Wu
Copy link

in plugin/jekyll.vim

  autocmd BufNewFile,BufReadPost * call s:init(expand('<amatch>:p'))
  autocmd FileType           netrw call s:init(expand('<afile>:p'))

when user use lazy load, on the first time these autocmd will not work. perhaps make these function as autoload function will be better, user can add these function to their vimrc?

it is an advice. Thanks!

@Freed-Wu
Copy link
Author

and not only netrw, such as defx, and other file explorer, all need autocmd, perhaps should let user add these autocmd to their vimrc by theirselves.

@parkr
Copy link
Owner

parkr commented Jun 21, 2020

Thanks! Would you be willing to create a pull request to fix this?

@Freed-Wu
Copy link
Author

with pleasure. give me some time!

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