nvim/lua/plugins/rustacean.lua

37 lines
788 B
Lua
Raw Permalink Normal View History

2024-07-30 05:55:57 +00:00
return {
"mrcjkb/rustaceanvim",
2024-08-22 07:06:49 +00:00
lazy = false,
2024-07-30 05:55:57 +00:00
opts = {
server = {
default_settings = {
-- rust-analyzer language server configuration
["rust-analyzer"] = {
2024-09-19 02:16:28 +00:00
-- rustfmt = {
-- overrideCommand = {
-- "leptosfmt",
-- "--stdin",
-- "--rustfmt",
-- },
-- },
2024-07-30 05:55:57 +00:00
cargo = {
targetDir = true,
2024-08-22 07:06:49 +00:00
buildScripts = {
enable = false,
},
2024-07-30 05:55:57 +00:00
},
2024-09-19 02:16:28 +00:00
procMacro = {
enable = true,
-- ignored = {
-- ["leptos_macro"] = { "component" },
-- },
},
2024-08-22 07:06:49 +00:00
checkOnSave = true,
2024-09-19 02:16:28 +00:00
check = {
command = "clippy",
},
2024-07-30 05:55:57 +00:00
},
},
},
},
}