diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-22 19:21:36 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-22 19:21:36 -0500 |
commit | e5af0fb51bd07ae522680f7b5a429bdf6537b517 (patch) | |
tree | 081a392aaa66d9197b39d9f596a05039c38abf5a /nvim/.config | |
parent | d04b812bae121ed1a26f85262ac537f7eea0f343 (diff) |
fix(nvim): add workaround for rust-analyzer docs
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/lsp/configs.lua | 4 |
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 |