From 5f9d7c1eb5c5913489441d1bfd034467f73e4a9c Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 5 Feb 2023 20:31:25 +0100 Subject: [PATCH] update rust-tools --- lua/plugins/rust-tools.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lua/plugins/rust-tools.lua b/lua/plugins/rust-tools.lua index 9198123..c1b66f7 100644 --- a/lua/plugins/rust-tools.lua +++ b/lua/plugins/rust-tools.lua @@ -11,6 +11,26 @@ return { -- Code action groups vim.keymap.set("n", "a", rt.code_action_group.code_action_group, { buffer = bufnr }) end, + + settings = { + ["rust-analyzer"] = { + imports = { + granularity = { + group = "module", + }, + prefix = "self", + }, + cargo = { + buildScripts = { + enable = true, + }, + }, + procMacro = { + enable = true, + }, + --checkOnSave = false, + }, + }, }, }) end,