fix(rust): show error when rust-analyzer not found
This commit is contained in:
@ -90,6 +90,12 @@ return {
|
|||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
vim.g.rustaceanvim = vim.tbl_deep_extend("keep", vim.g.rustaceanvim or {}, opts or {})
|
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,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user