diff --git a/.vim/nvim.lua b/.vim/nvim.lua index fb95890..0cd4e9b 100644 --- a/.vim/nvim.lua +++ b/.vim/nvim.lua @@ -21,6 +21,17 @@ rust_capabilities.textDocument.completion.completionItem.resolveSupport = { nvim_lsp.rust_analyzer.setup({ on_attach = on_attach, capabilities = rust_capabilities, + settings = { + ['rust-analyzer'] = { + checkOnSave = { + allFeatures = true, + overrideCommand = { + 'cargo', 'clippy', '--workspace', '--message-format=json', + '--all-targets', '--all-features' + } + } + } + } }) nvim_lsp.gopls.setup({ on_attach = on_attach }) nvim_lsp.pyright.setup({ on_attach = on_attach })