nvim/lua/plugins/rustacean.lua

37 lines
788 B
Lua
Raw Normal View History

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