Only enable rust_analyer if it is installed
This commit is contained in:
@@ -148,5 +148,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||
end,
|
||||
})
|
||||
|
||||
-- Manually enable rust analyzer
|
||||
-- Manually enable rust analyzer, if installed
|
||||
if vim.fn.executable("rust_analyzer") then
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user