From e5af0fb51bd07ae522680f7b5a429bdf6537b517 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 22 Aug 2024 19:21:36 -0500 Subject: fix(nvim): add workaround for rust-analyzer docs --- nvim/.config/nvim/lua/tobyvin/lsp/configs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nvim/.config') diff --git a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua index 0e92e0f..99663a8 100644 --- a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua +++ b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua @@ -165,7 +165,9 @@ local M = { { title = client.name } ) elseif resp.result then - vim.ui.open(resp.result["local"] or resp.result.web or resp.result) + local url = resp.result["local"] or resp.result.web or resp.result + url = string.gsub(url, "/macros/macro%.", "/macro%.") + vim.ui.open(url) end return "" end -- cgit v1.2.3-70-g09d2