You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: properly resolve directories
The `vim.loop.fs_realpath()` function can be used to properly resolve
both the `.` shortcut as well as relative paths. This corrects scenarios
when opening nvim to a subdirectory of the working directory. With this
change doing so will properly resolve the session file to the directory
that was specified on the command line.
```console
$ pwd
/Users/username/.config
$ ls
fish iterm2 nvim
$ nvim nvim
```
This will result in using the path `/Users/username/.config/nvim` for
the session. The behavior will be the same as running plain `nvim` from
within the `/Users/username/.config/nvim` directory itself.
This change also quotes the path passed to `git` to properly handle
paths containing spaces.
This change also corrects some typos in the readme.
* fix: isdirectory is not necessary
The fs_realpath function will return nil if the path doesn't exist.
* fix: typos in comments
* fix: isdirectory is still necessary
Oops, the isdirectory check is necessary to confirm it's a directory and
not a file.
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,7 @@ require("persisted").setup({
248
248
249
249
Autoloading can be further controlled for certain directories by specifying `allowed_dirs` and `ignored_dirs`.
250
250
251
-
> **Note**: Autoloading will not occur if the plugin is lazy loaded or a user opens Neovim with arguments other than a single directory argument. For example: `nvim some_file.rb` will not not result in autoloading but `nvim some/existing/path` or `nvim .` will.
251
+
> **Note**: Autoloading will not occur if the plugin is lazy loaded or a user opens Neovim with arguments other than a single directory argument. For example: `nvim some_file.rb` will not result in autoloading but `nvim some/existing/path` or `nvim .` will.
0 commit comments