From b87cabf6d86bfa498c989ad30d0bcec56446ffab Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Thu, 2 Oct 2025 06:00:40 +0200 Subject: [PATCH] fix(rust-analyzer): enable additional diagnostics --- lua/ow/lsp.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/ow/lsp.lua b/lua/ow/lsp.lua index 94aa3e6..c57b255 100644 --- a/lua/ow/lsp.lua +++ b/lua/ow/lsp.lua @@ -472,6 +472,18 @@ function M.setup() end), settings = { ["rust-analyzer"] = { + check = { + command = "clippy", + extraArgs = { + "--", + "-Wclippy::pedantic", + }, + }, + diagnostics = { + styleLints = { + enable = true, + }, + }, inlayHints = { chainingHints = { enable = false,