2024-12-13 14:31:21 +03:00
|
|
|
local navic = require("nvim-navic")
|
|
|
|
|
|
|
|
vim.g.rustaceanvim = {
|
2025-02-12 21:42:15 +03:00
|
|
|
server = {
|
|
|
|
on_attach = function(client, bufnr)
|
|
|
|
navic.attach(client, bufnr)
|
|
|
|
end,
|
|
|
|
settings = {
|
|
|
|
['rust-analyzer'] = {
|
2025-04-12 23:21:43 +03:00
|
|
|
procMacro = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2025-02-12 21:42:15 +03:00
|
|
|
assist = {
|
|
|
|
importEnforceGranularity = true,
|
|
|
|
importPrefix = "create"
|
|
|
|
},
|
2025-04-12 23:21:43 +03:00
|
|
|
cargo = {
|
|
|
|
allFeatures = true,
|
|
|
|
},
|
2025-02-12 21:42:15 +03:00
|
|
|
checkOnSave = {
|
|
|
|
command = "clippy",
|
|
|
|
allFeatures = true
|
|
|
|
},
|
|
|
|
inlayHints = {
|
|
|
|
lifetimeElisionHints = {
|
|
|
|
enable = true,
|
|
|
|
useParameterNames = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-12-13 14:31:21 +03:00
|
|
|
}
|