feat(rust-analyzer): update rust analyzer config
This commit is contained in:
@@ -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,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user