weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.15k stars 45 forks source link

Open on vim enter #58

Closed kristijanhusak closed 4 years ago

kristijanhusak commented 4 years ago

Hello, how can I set explorer to open up automatically when i open vim?

I tried this:

  autocmd User CocNvimInit :CocCommand explorer<CR>

But it returns [coc.nvim] Command: explorer<CR> not found

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.79. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

weirongxu commented 4 years ago

No need the <CR>? Try this

autocmd User CocNvimInit :CocCommand explorer
kristijanhusak commented 4 years ago

What a rookie mistake. Thanks!

linrongbin16 commented 2 years ago

hi @weirongxu , is it available to open coc-explorer synchronizely, just like nvim-tree.lua and nerdtree ? I have tried autocmd User CocNvimInit :CocCommand explorer, it's asynchronizely opened coc-explorer after vim start.

If so, how is the first open performance?

weirongxu commented 2 years ago

hi @weirongxu , is it available to open coc-explorer synchronizely, just like nvim-tree.lua and nerdtree ? I have tried autocmd User CocNvimInit :CocCommand explorer, it's asynchronizely opened coc-explorer after vim start.

If so, how is the first open performance?

I think this may not be possible because CocNvimInit is asynchronous, and coc.nvim is also asynchronous when loading plugins in order to improve the speed of vim startup

linrongbin16 commented 2 years ago

hi @weirongxu , is it available to open coc-explorer synchronizely, just like nvim-tree.lua and nerdtree ? I have tried autocmd User CocNvimInit :CocCommand explorer, it's asynchronizely opened coc-explorer after vim start. If so, how is the first open performance?

I think this may not be possible because CocNvimInit is asynchronous, and coc.nvim is also asynchronous when loading plugins in order to improve the speed of vim startup

thanks for reply