feat(rust-analyzer): update rust analyzer config

This commit is contained in:
2025-09-16 21:25:41 +04:00
parent 2cc40aa68f
commit 8843432ef3

View File

@@ -1,9 +1,15 @@
local navic = require("nvim-navic")
vim.g.rustaceanvim = { vim.g.rustaceanvim = {
server = { server = {
on_attach = function(client, bufnr)
navic.attach(client, bufnr)
end,
settings = { settings = {
['rust-analyzer'] = { ['rust-analyzer'] = {
procMacro = { numThreads = 6,
enable = true, cachePriming = {
numThreads = false
}, },
assist = { assist = {
importEnforceGranularity = true, importEnforceGranularity = true,
@@ -16,6 +22,16 @@ vim.g.rustaceanvim = {
command = "clippy", command = "clippy",
allFeatures = true allFeatures = true
}, },
procMacro = {
enable = true,
},
inlayHints = {
parameterHints = false,
lifetimeElisionHints = false,
chainingHints = false,
bindingModeHints = false,
renderColons = false,
}
} }
} }
} }