Closed pyrho closed 3 months ago
Thanks a lot for the PR! :heart: This looks good to me!
Oh, if you could add a line to the readme saying that the plugin handles line numbers, that would be great!
Oops forgot about this, will create a new PR with this.
When trying to open a link to a file that also has a line number, e.g.
path/to/file:42
these changes now allow to open the file and put the cursor on the corresponding line number.Previously, open a file with a
:
and the line number would fail.Additionally these changes use
vim.fn.filereadable
instead offs_open
/fs_stat
, as the API is easier to use and (I think) it may be less costly than opening the file viafs_open
.Thanks for the plugin!