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 = {
server = {
on_attach = function(client, bufnr)
navic.attach(client, bufnr)
end,
settings = {
['rust-analyzer'] = {
procMacro = {
enable = true,
numThreads = 6,
cachePriming = {
numThreads = false
},
assist = {
importEnforceGranularity = true,
@@ -16,6 +22,16 @@ vim.g.rustaceanvim = {
command = "clippy",
allFeatures = true
},
procMacro = {
enable = true,
},
inlayHints = {
parameterHints = false,
lifetimeElisionHints = false,
chainingHints = false,
bindingModeHints = false,
renderColons = false,
}
}
}
}