mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
update rust analyzer config
This commit is contained in:
75
lua/plugins/rustaceanvim.lua
Normal file
75
lua/plugins/rustaceanvim.lua
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
return {
|
||||||
|
"mrcjkb/rustaceanvim",
|
||||||
|
opts = {
|
||||||
|
server = {
|
||||||
|
default_settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
standalone = true,
|
||||||
|
checkOnSave = true,
|
||||||
|
rustfmt = {
|
||||||
|
overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
|
||||||
|
},
|
||||||
|
cargo = {
|
||||||
|
allFeatures = true,
|
||||||
|
loadOutDirsFromCheck = true,
|
||||||
|
buildScripts = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
files = {
|
||||||
|
excludeDirs = {
|
||||||
|
".flatpak-builder",
|
||||||
|
"_build",
|
||||||
|
".dart_tool",
|
||||||
|
".flatpak-builder",
|
||||||
|
".git",
|
||||||
|
".gitlab",
|
||||||
|
".gitlab-ci",
|
||||||
|
".gradle",
|
||||||
|
".idea",
|
||||||
|
".next",
|
||||||
|
".project",
|
||||||
|
".scannerwork",
|
||||||
|
".settings",
|
||||||
|
".venv",
|
||||||
|
".direnv",
|
||||||
|
"archetype-resources",
|
||||||
|
"bin",
|
||||||
|
"docs",
|
||||||
|
"hooks",
|
||||||
|
"node_modules",
|
||||||
|
"po",
|
||||||
|
"screenshots",
|
||||||
|
"target",
|
||||||
|
"out",
|
||||||
|
"examples/node_modules",
|
||||||
|
},
|
||||||
|
watcherExclude = {
|
||||||
|
"**/_build",
|
||||||
|
"**/.classpath",
|
||||||
|
"**/.dart_tool",
|
||||||
|
"**/.factorypath",
|
||||||
|
"**/.flatpak-builder",
|
||||||
|
"**/.git/objects/**",
|
||||||
|
"**/.git/subtree-cache/**",
|
||||||
|
"**/.idea",
|
||||||
|
"**/.project",
|
||||||
|
"**/.scannerwork",
|
||||||
|
"**/.settings",
|
||||||
|
"**/.venv",
|
||||||
|
"**/node_modules",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
procMacro = {
|
||||||
|
enable = true,
|
||||||
|
ignored = {
|
||||||
|
["async-trait"] = { "async_trait" },
|
||||||
|
["napi-derive"] = { "napi" },
|
||||||
|
["async-recursion"] = { "async_recursion" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Reference in New Issue
Block a user