From 7a9760b0cd8d9e79de9778ba0639920ce28e17df Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 1 Mar 2022 15:23:20 +0100 Subject: [PATCH] home: vim: add 'rust-analyzer' LSP configuration --- home/vim/plugin/settings/lspconfig.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/vim/plugin/settings/lspconfig.vim b/home/vim/plugin/settings/lspconfig.vim index 46c82a6..f8e824e 100644 --- a/home/vim/plugin/settings/lspconfig.vim +++ b/home/vim/plugin/settings/lspconfig.vim @@ -8,4 +8,11 @@ if utils.is_executable("pyright") then on_attach = utils.on_attach, }) end + +-- Rust +if utils.is_executable("rust-analyzer") then + lsp.rust_analyzer.setup({ + on_attach = utils.on_attach, + }) +end EOF