From a0d1f5b403366d7ffd1e4fb1c39030f9fbfc6893 Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Mon, 3 Jun 2024 01:10:14 +0300 Subject: [PATCH] Fix URL open --- plugin/lsp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/lsp.lua b/plugin/lsp.lua index af7c9f1..32180c5 100644 --- a/plugin/lsp.lua +++ b/plugin/lsp.lua @@ -59,7 +59,9 @@ lspconfig.rust_analyzer.setup({ if err then error(tostring(err)) else - vim.ui.open(url) + if url then + vim.ui.open(url) + end end end) end,