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