neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a9c89bcbf69a3d0ef47f324a47ff6eb482467e70
parent 054a287dbe6fe4308d26ec593da2057641f2bb9b
Author: dundargoc <gocdundar@gmail.com>
Date:   Mon,  3 Jun 2024 11:55:20 +0200

fix(gx): allow `@` in url

This will make `gx` work for links for the form
https://hachyderm.io/@neovim.

Diffstat:
Mruntime/lua/vim/ui.lua | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua @@ -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