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