From 49397e957eb6625ff9f346416649b16a79d56de5 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Fri, 27 May 2022 20:40:05 +0100 Subject: [PATCH] neovim: Check Rust code with clippy --- neovim/init.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/neovim/init.vim b/neovim/init.vim index 9341361..c86c18e 100644 --- a/neovim/init.vim +++ b/neovim/init.vim @@ -375,7 +375,13 @@ lsp_installer.setup({}) local lsp_settings = { gopls = {}, jedi_language_server = {}, - rust_analyzer = {}, + rust_analyzer = { + ["rust-analyzer"] = { + checkOnSave = { + command = "clippy", + }, + }, + }, solargraph = {}, tsserver = {}, }