aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-08-22 19:21:36 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-08-22 19:21:36 -0500
commite5af0fb51bd07ae522680f7b5a429bdf6537b517 (patch)
tree081a392aaa66d9197b39d9f596a05039c38abf5a
parentd04b812bae121ed1a26f85262ac537f7eea0f343 (diff)
fix(nvim): add workaround for rust-analyzer docs
-rw-r--r--nvim/.config/nvim/lua/tobyvin/lsp/configs.lua4
1 files changed, 3 insertions, 1 deletions
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 "<Ignore>"
end