mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(gx): allow @
in url
This will make `gx` work for links for the form https://hachyderm.io/@neovim.
This commit is contained in:
@ -179,7 +179,13 @@ function M._get_url()
|
||||
current_node = current_node:parent()
|
||||
end
|
||||
end
|
||||
return vim.fn.expand('<cfile>')
|
||||
|
||||
local old_isfname = vim.o.isfname
|
||||
vim.cmd [[set isfname+=@-@]]
|
||||
local url = vim.fn.expand('<cfile>')
|
||||
vim.o.isfname = old_isfname
|
||||
|
||||
return url
|
||||
end
|
||||
|
||||
return M
|
||||
|
Reference in New Issue
Block a user