From d54cd8782c8bdb3803acbb2a9292c3c648d8949f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 8 Nov 2024 00:55:25 -0600 Subject: [PATCH] refactor(nvim): improve rust analyzer settings --- .../dots/.config/nvim/lua/plugins/configs/lsp.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua index 11985be4..127ec71a 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -110,17 +110,19 @@ return { default_settings = { ["rust-analyzer"] = { cargo = { - allFeatures = true, + features = "all", loadOutDirsFromCheck = true, runBuildScripts = true, }, - checkOnSave = { - allFeatures = true, - allTargets = true, + check = { command = "clippy", + features = "all", }, - procMacro = { - enable = true, + checkOnSave = true, + rustfmt = { + rangeFormatting = { + enable = true, + }, }, }, },