fix(rust): show error when rust-analyzer not found

This commit is contained in:
Folke Lemaitre
2024-05-27 08:09:24 +02:00
parent f48d55a653
commit d3500a4a33

View File

@ -90,6 +90,12 @@ return {
},
config = function(_, opts)
vim.g.rustaceanvim = vim.tbl_deep_extend("keep", vim.g.rustaceanvim or {}, opts or {})
if vim.fn.executable("rust-analyzer") == 0 then
LazyVim.error(
"**rust-analyzer** not found in PATH, please install it.\nhttps://rust-analyzer.github.io/",
{ title = "rustaceanvim" }
)
end
end,
},