nvim/lua/plugins/rustacean.lua

37 lines
788 B
Lua

return {
"mrcjkb/rustaceanvim",
lazy = false,
opts = {
server = {
default_settings = {
-- rust-analyzer language server configuration
["rust-analyzer"] = {
-- rustfmt = {
-- overrideCommand = {
-- "leptosfmt",
-- "--stdin",
-- "--rustfmt",
-- },
-- },
cargo = {
targetDir = true,
buildScripts = {
enable = false,
},
},
procMacro = {
enable = true,
-- ignored = {
-- ["leptos_macro"] = { "component" },
-- },
},
checkOnSave = true,
check = {
command = "clippy",
},
},
},
},
},
}