+
Skip to content

[BUG] restore from path argument incompatible with oil.nvim #372

@niderhoff

Description

@niderhoff

Describe the bug
Trying to restore a session from a path argument like this:

nvim /my_folder/

will fail, because it is compatible, with oil.nvim, because the latter is rewriting the argument from /my_folder/ to oil:///my_folder.

To Reproduce
Steps to reproduce the behavior:

  1. save a session in /my_folder
  2. Install oil.nvim
  3. run nvim /my_folder/
  4. session is not restored, instead oil file explorer is started

Expected behavior
Session is restored.

Screenshots
Before oil.nvim:

image

after:

image

Checkhealth
image

Baseline (please complete the following information):

  • sessionoptions=blank,buffers,curdir,folds,help,tabpages,winsize,terminal
  • Darwin T000fad6c4 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
  • NVIM v0.10.1

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载