fix: more correct gf binding for ssh files
This commit is contained in:
parent
69ce73e810
commit
164135793d
1 changed files with 1 additions and 2 deletions
|
|
@ -420,8 +420,7 @@ end
|
|||
|
||||
M.goto_file = function()
|
||||
local url = M.parse_url(vim.api.nvim_buf_get_name(0))
|
||||
local word = vim.fn.expand("<cWORD>")
|
||||
local fname = vim.fn.matchlist(word, "\\v\\f+")[1]
|
||||
local fname = vim.fn.expand("<cfile>")
|
||||
local fullpath = fname
|
||||
if not fs.is_absolute(fname) then
|
||||
local pardir = vim.fs.dirname(url.path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue